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
- TraceSwitch.cs
- PrintPreviewGraphics.cs
- XmlAttributeOverrides.cs
- OptimisticConcurrencyException.cs
- ImpersonationContext.cs
- EventSetterHandlerConverter.cs
- ServiceDescriptionImporter.cs
- InProcStateClientManager.cs
- SpotLight.cs
- PhysicalFontFamily.cs
- DbReferenceCollection.cs
- ImportContext.cs
- AdvancedBindingPropertyDescriptor.cs
- BindingContext.cs
- DataSourceDescriptorCollection.cs
- EntityDataSourceDesigner.cs
- BaseAsyncResult.cs
- CodeTypeParameterCollection.cs
- FreezableCollection.cs
- HttpException.cs
- SynchronizingStream.cs
- Models.cs
- ObjectStateEntry.cs
- XmlRootAttribute.cs
- SynthesizerStateChangedEventArgs.cs
- ValidatingPropertiesEventArgs.cs
- DataStreams.cs
- ObjectViewEntityCollectionData.cs
- EFDataModelProvider.cs
- ListMarkerLine.cs
- DataRelationPropertyDescriptor.cs
- Brush.cs
- CqlParserHelpers.cs
- ListViewItemCollectionEditor.cs
- TimeSpanHelper.cs
- QueryOperationResponseOfT.cs
- WindowsListBox.cs
- EditorPartCollection.cs
- SqlInfoMessageEvent.cs
- TriggerBase.cs
- WebFaultClientMessageInspector.cs
- RepeaterItemEventArgs.cs
- PlacementWorkspace.cs
- TrustManagerPromptUI.cs
- DataGridToolTip.cs
- SerializationEventsCache.cs
- GenericsInstances.cs
- X509Chain.cs
- GraphicsState.cs
- DbParameterHelper.cs
- BooleanProjectedSlot.cs
- TransformCollection.cs
- ImportContext.cs
- ArithmeticException.cs
- Ipv6Element.cs
- IUnknownConstantAttribute.cs
- TransactionException.cs
- WebPartTransformerCollection.cs
- SourceFileInfo.cs
- KeysConverter.cs
- BodyWriter.cs
- ParameterCollectionEditor.cs
- TextFormatterHost.cs
- Vector3DAnimationBase.cs
- GPRECT.cs
- InvalidTimeZoneException.cs
- xmlformatgeneratorstatics.cs
- ProviderConnectionPoint.cs
- GcSettings.cs
- UInt64Converter.cs
- Operators.cs
- ICspAsymmetricAlgorithm.cs
- AuthenticatedStream.cs
- SplitterEvent.cs
- TagPrefixInfo.cs
- Transform3D.cs
- EventKeyword.cs
- BevelBitmapEffect.cs
- IgnoreSectionHandler.cs
- DataServiceQuery.cs
- mansign.cs
- InheritanceContextHelper.cs
- NativeMethods.cs
- CompensatableTransactionScopeActivity.cs
- GeneralTransform3DGroup.cs
- RegexFCD.cs
- MessageDispatch.cs
- TakeQueryOptionExpression.cs
- SelectionItemPattern.cs
- ContentHostHelper.cs
- SchemaMerger.cs
- TypeDelegator.cs
- AspNetPartialTrustHelpers.cs
- ExpressionBinding.cs
- FloaterParagraph.cs
- DbMetaDataColumnNames.cs
- ServiceContractViewControl.Designer.cs
- SoapExtensionTypeElementCollection.cs
- Utility.cs
- X509Utils.cs