Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstancePersistenceCommandException.cs / 1305376 / InstancePersistenceCommandException.cs
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------
namespace System.Runtime.DurableInstancing
{
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;
using System.Security;
using System.Xml.Linq;
[Serializable]
public class InstancePersistenceCommandException : InstancePersistenceException
{
const string InstanceIdName = "instancePersistenceInstanceId";
public InstancePersistenceCommandException()
{
}
public InstancePersistenceCommandException(string message)
: base(message)
{
}
public InstancePersistenceCommandException(string message, Exception innerException)
: base(message, innerException)
{
}
public InstancePersistenceCommandException(XName commandName)
: base(commandName)
{
}
public InstancePersistenceCommandException(XName commandName, Guid instanceId)
: base(commandName)
{
InstanceId = instanceId;
}
public InstancePersistenceCommandException(XName commandName, Exception innerException)
: base(commandName, innerException)
{
}
public InstancePersistenceCommandException(XName commandName, string message, Exception innerException)
: base(commandName, message, innerException)
{
}
public InstancePersistenceCommandException(XName commandName, Guid instanceId, Exception innerException)
: base(commandName, innerException)
{
InstanceId = instanceId;
}
public InstancePersistenceCommandException(XName commandName, Guid instanceId, string message, Exception innerException)
: base(commandName, message, innerException)
{
InstanceId = instanceId;
}
[SecurityCritical]
protected InstancePersistenceCommandException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
InstanceId = (Guid) info.GetValue(InstanceIdName, typeof(Guid));
}
public Guid InstanceId { get; private set; }
[Fx.Tag.SecurityNote(Critical = "Overrides critical inherited method")]
[SecurityCritical]
[SuppressMessage(FxCop.Category.Security, FxCop.Rule.SecureGetObjectDataOverrides,
Justification = "Method is SecurityCritical")]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue(InstanceIdName, InstanceId, typeof(Guid));
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------
namespace System.Runtime.DurableInstancing
{
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;
using System.Security;
using System.Xml.Linq;
[Serializable]
public class InstancePersistenceCommandException : InstancePersistenceException
{
const string InstanceIdName = "instancePersistenceInstanceId";
public InstancePersistenceCommandException()
{
}
public InstancePersistenceCommandException(string message)
: base(message)
{
}
public InstancePersistenceCommandException(string message, Exception innerException)
: base(message, innerException)
{
}
public InstancePersistenceCommandException(XName commandName)
: base(commandName)
{
}
public InstancePersistenceCommandException(XName commandName, Guid instanceId)
: base(commandName)
{
InstanceId = instanceId;
}
public InstancePersistenceCommandException(XName commandName, Exception innerException)
: base(commandName, innerException)
{
}
public InstancePersistenceCommandException(XName commandName, string message, Exception innerException)
: base(commandName, message, innerException)
{
}
public InstancePersistenceCommandException(XName commandName, Guid instanceId, Exception innerException)
: base(commandName, innerException)
{
InstanceId = instanceId;
}
public InstancePersistenceCommandException(XName commandName, Guid instanceId, string message, Exception innerException)
: base(commandName, message, innerException)
{
InstanceId = instanceId;
}
[SecurityCritical]
protected InstancePersistenceCommandException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
InstanceId = (Guid) info.GetValue(InstanceIdName, typeof(Guid));
}
public Guid InstanceId { get; private set; }
[Fx.Tag.SecurityNote(Critical = "Overrides critical inherited method")]
[SecurityCritical]
[SuppressMessage(FxCop.Category.Security, FxCop.Rule.SecureGetObjectDataOverrides,
Justification = "Method is SecurityCritical")]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue(InstanceIdName, InstanceId, typeof(Guid));
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Point3DCollection.cs
- VerticalAlignConverter.cs
- ControlValuePropertyAttribute.cs
- XmlArrayItemAttributes.cs
- RuntimeHelpers.cs
- SessionIDManager.cs
- PointIndependentAnimationStorage.cs
- _BaseOverlappedAsyncResult.cs
- WebServiceReceiveDesigner.cs
- XmlMembersMapping.cs
- ArraySet.cs
- TextSchema.cs
- ZipIOCentralDirectoryBlock.cs
- PropertyBuilder.cs
- CodeSubDirectory.cs
- XmlDataSource.cs
- GPPOINTF.cs
- FileDialog.cs
- HttpWebRequestElement.cs
- CodeCatchClause.cs
- WpfMemberInvoker.cs
- ReturnType.cs
- HierarchicalDataBoundControl.cs
- IsolatedStorageFileStream.cs
- HandoffBehavior.cs
- ByteFacetDescriptionElement.cs
- DesignerDataRelationship.cs
- listitem.cs
- DependencyPropertyDescriptor.cs
- CallbackValidatorAttribute.cs
- XmlTextReaderImpl.cs
- OracleBoolean.cs
- WebPartConnectionsConfigureVerb.cs
- DefaultEvaluationContext.cs
- TraceSection.cs
- COM2EnumConverter.cs
- ServiceDescriptions.cs
- Color.cs
- EditorPart.cs
- ValidatorCollection.cs
- TraceData.cs
- DataSetMappper.cs
- ClrProviderManifest.cs
- securitycriticaldata.cs
- UTF32Encoding.cs
- SyncOperationState.cs
- ItemsPresenter.cs
- ConnectionsZone.cs
- DataBindingCollection.cs
- FederatedMessageSecurityOverHttp.cs
- SHA1Managed.cs
- Duration.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- GroupAggregateExpr.cs
- ElementNotAvailableException.cs
- SqlStream.cs
- SqlError.cs
- IconBitmapDecoder.cs
- ObjectViewFactory.cs
- DataGridViewTopLeftHeaderCell.cs
- BufferedReceiveManager.cs
- BitmapImage.cs
- ResourceDictionaryCollection.cs
- CaseInsensitiveOrdinalStringComparer.cs
- NetWebProxyFinder.cs
- CharEnumerator.cs
- MetadataPropertyCollection.cs
- ComboBox.cs
- Vector3D.cs
- DataTrigger.cs
- PrintEvent.cs
- Window.cs
- SecurityTokenResolver.cs
- InvokeGenerator.cs
- ImageField.cs
- XhtmlBasicLiteralTextAdapter.cs
- MessageSmuggler.cs
- CheckBox.cs
- DataListItem.cs
- SqlCharStream.cs
- CqlGenerator.cs
- AsymmetricKeyExchangeFormatter.cs
- TextBounds.cs
- AttributeAction.cs
- CompoundFileStorageReference.cs
- ConnectionString.cs
- HtmlUtf8RawTextWriter.cs
- MarkerProperties.cs
- FontInfo.cs
- FixedSOMLineCollection.cs
- RenderDataDrawingContext.cs
- BindToObject.cs
- SymbolMethod.cs
- DesignerActionListCollection.cs
- MissingSatelliteAssemblyException.cs
- DatePickerAutomationPeer.cs
- PolyBezierSegment.cs
- DirectionalLight.cs
- CharUnicodeInfo.cs
- TextProviderWrapper.cs