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
- WebUtil.cs
- HttpListenerRequest.cs
- ForeignKeyConstraint.cs
- ExecutionPropertyManager.cs
- ScrollBarRenderer.cs
- DataGridHelper.cs
- ValidatingPropertiesEventArgs.cs
- Ray3DHitTestResult.cs
- NonPrimarySelectionGlyph.cs
- FlowLayout.cs
- XmlIncludeAttribute.cs
- CodePageEncoding.cs
- DispatchChannelSink.cs
- SynchronizationHandlesCodeDomSerializer.cs
- HtmlTableCell.cs
- DeviceFiltersSection.cs
- PartitionResolver.cs
- CheckBox.cs
- RuntimeResourceSet.cs
- DocumentOrderQuery.cs
- PeerPresenceInfo.cs
- WebRequestModulesSection.cs
- FontEmbeddingManager.cs
- TextRangeEditLists.cs
- PathFigureCollection.cs
- NonDualMessageSecurityOverHttp.cs
- hwndwrapper.cs
- ActivityIdHeader.cs
- ReadContentAsBinaryHelper.cs
- CallTemplateAction.cs
- CollectionViewProxy.cs
- ParserHooks.cs
- MatrixStack.cs
- Utils.cs
- ConfigurationPermission.cs
- SystemResourceKey.cs
- QuaternionKeyFrameCollection.cs
- ObjectStateManager.cs
- SByte.cs
- DataObjectAttribute.cs
- RewritingPass.cs
- Pair.cs
- ResourceKey.cs
- RemoteEndpointMessageProperty.cs
- MutexSecurity.cs
- RowUpdatedEventArgs.cs
- QueryStringHandler.cs
- RsaSecurityKey.cs
- DesignParameter.cs
- SafeFileMapViewHandle.cs
- SchemaTableColumn.cs
- Polygon.cs
- SplashScreenNativeMethods.cs
- ReachBasicContext.cs
- TextEditorCharacters.cs
- EventWaitHandleSecurity.cs
- DelegatingConfigHost.cs
- SessionPageStatePersister.cs
- GZipUtils.cs
- ProjectedWrapper.cs
- InternalBufferOverflowException.cs
- HtmlFormParameterWriter.cs
- SqlPersistenceProviderFactory.cs
- TcpStreams.cs
- PropertyDescriptorCollection.cs
- HitTestParameters3D.cs
- GlyphRun.cs
- ListViewGroupConverter.cs
- FontWeightConverter.cs
- TargetInvocationException.cs
- WindowsSpinner.cs
- SqlDependencyUtils.cs
- ValidationRuleCollection.cs
- GeometryDrawing.cs
- WindowsButton.cs
- FlowDocumentScrollViewer.cs
- HttpProfileBase.cs
- Timer.cs
- XmlSchemaFacet.cs
- DictationGrammar.cs
- ConfigurationLocation.cs
- AutomationProperty.cs
- SafeHandle.cs
- RuntimeDelegateArgument.cs
- TempFiles.cs
- WindowCollection.cs
- ElementsClipboardData.cs
- CodeDomSerializerBase.cs
- DbParameterCollection.cs
- XmlSchemaObjectCollection.cs
- FtpWebResponse.cs
- EncodingInfo.cs
- ListBase.cs
- ObjectDataSourceEventArgs.cs
- AutomationTextAttribute.cs
- SuppressMergeCheckAttribute.cs
- ListContractAdapter.cs
- DeploymentSection.cs
- DecoderNLS.cs
- DbConnectionOptions.cs