Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstanceOwnerException.cs / 1305376 / InstanceOwnerException.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 InstanceOwnerException : InstancePersistenceException { const string InstanceOwnerIdName = "instancePersistenceInstanceOwnerId"; public InstanceOwnerException() : base(SRCore.InstanceOwnerDefault) { } public InstanceOwnerException(string message) : base(message) { } public InstanceOwnerException(string message, Exception innerException) : base(message, innerException) { } public InstanceOwnerException(XName commandName, Guid instanceOwnerId) : this(commandName, instanceOwnerId, null) { } public InstanceOwnerException(XName commandName, Guid instanceOwnerId, Exception innerException) : this(commandName, instanceOwnerId, ToMessage(instanceOwnerId), innerException) { } public InstanceOwnerException(XName commandName, Guid instanceOwnerId, string message, Exception innerException) : base(commandName, message, innerException) { InstanceOwnerId = instanceOwnerId; } [SecurityCritical] protected InstanceOwnerException(SerializationInfo info, StreamingContext context) : base(info, context) { InstanceOwnerId = (Guid) info.GetValue(InstanceOwnerIdName, typeof(Guid)); } public Guid InstanceOwnerId { 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(InstanceOwnerIdName, InstanceOwnerId, typeof(Guid)); } static string ToMessage(Guid instanceOwnerId) { if (instanceOwnerId == Guid.Empty) { return SRCore.InstanceOwnerDefault; } return SRCore.InstanceOwnerSpecific(instanceOwnerId); } } } // 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 InstanceOwnerException : InstancePersistenceException { const string InstanceOwnerIdName = "instancePersistenceInstanceOwnerId"; public InstanceOwnerException() : base(SRCore.InstanceOwnerDefault) { } public InstanceOwnerException(string message) : base(message) { } public InstanceOwnerException(string message, Exception innerException) : base(message, innerException) { } public InstanceOwnerException(XName commandName, Guid instanceOwnerId) : this(commandName, instanceOwnerId, null) { } public InstanceOwnerException(XName commandName, Guid instanceOwnerId, Exception innerException) : this(commandName, instanceOwnerId, ToMessage(instanceOwnerId), innerException) { } public InstanceOwnerException(XName commandName, Guid instanceOwnerId, string message, Exception innerException) : base(commandName, message, innerException) { InstanceOwnerId = instanceOwnerId; } [SecurityCritical] protected InstanceOwnerException(SerializationInfo info, StreamingContext context) : base(info, context) { InstanceOwnerId = (Guid) info.GetValue(InstanceOwnerIdName, typeof(Guid)); } public Guid InstanceOwnerId { 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(InstanceOwnerIdName, InstanceOwnerId, typeof(Guid)); } static string ToMessage(Guid instanceOwnerId) { if (instanceOwnerId == Guid.Empty) { return SRCore.InstanceOwnerDefault; } return SRCore.InstanceOwnerSpecific(instanceOwnerId); } } } // 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
- TrackingProfileDeserializationException.cs
- FileResponseElement.cs
- Activator.cs
- DBCSCodePageEncoding.cs
- NullableDecimalAverageAggregationOperator.cs
- HtmlHistory.cs
- Claim.cs
- PluralizationService.cs
- IImplicitResourceProvider.cs
- IndexedString.cs
- ZipIOExtraFieldZip64Element.cs
- BrowserDefinition.cs
- ProxyWebPartConnectionCollection.cs
- GPRECT.cs
- SystemIPv6InterfaceProperties.cs
- StaticExtensionConverter.cs
- DataTableMappingCollection.cs
- DetailsViewDeletedEventArgs.cs
- ComponentRenameEvent.cs
- SystemKeyConverter.cs
- LogSwitch.cs
- ArrayEditor.cs
- OledbConnectionStringbuilder.cs
- AxHost.cs
- RequestCacheEntry.cs
- AttachedAnnotation.cs
- ModuleElement.cs
- TextRunTypographyProperties.cs
- ServerValidateEventArgs.cs
- TransportDefaults.cs
- PathTooLongException.cs
- EventManager.cs
- DataGridPagingPage.cs
- DecoderNLS.cs
- DesignerTransactionCloseEvent.cs
- ApplicationBuildProvider.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- TrackingProfileSerializer.cs
- UnaryExpression.cs
- _IPv6Address.cs
- MenuItem.cs
- Imaging.cs
- EUCJPEncoding.cs
- FrameworkElement.cs
- XmlSchemaDatatype.cs
- SHA512Cng.cs
- FilterEventArgs.cs
- Verify.cs
- ObjectManager.cs
- EncryptedPackage.cs
- SHA1Managed.cs
- OutputCacheSettingsSection.cs
- DBCommandBuilder.cs
- KeySplineConverter.cs
- ColorAnimationUsingKeyFrames.cs
- VerticalAlignConverter.cs
- BindUriHelper.cs
- Int64Storage.cs
- HMACRIPEMD160.cs
- NullableDoubleMinMaxAggregationOperator.cs
- GradientStop.cs
- LogExtent.cs
- Parser.cs
- ToolStripItemRenderEventArgs.cs
- TiffBitmapDecoder.cs
- HasCopySemanticsAttribute.cs
- IApplicationTrustManager.cs
- ActivityDesignerHelper.cs
- MenuEventArgs.cs
- Typography.cs
- FieldAccessException.cs
- MultiByteCodec.cs
- QueryReaderSettings.cs
- ApplicationBuildProvider.cs
- SimpleBitVector32.cs
- Label.cs
- TableItemProviderWrapper.cs
- WsatServiceAddress.cs
- XmlSchemaNotation.cs
- OpenTypeLayout.cs
- SynchronizedDispatch.cs
- LambdaCompiler.Logical.cs
- SqlDataSourceDesigner.cs
- Membership.cs
- ClientConfigurationHost.cs
- OleDbTransaction.cs
- EncoderExceptionFallback.cs
- PropertyEmitterBase.cs
- ColorAnimationUsingKeyFrames.cs
- backend.cs
- CompositeDataBoundControl.cs
- ModifyActivitiesPropertyDescriptor.cs
- RectAnimationClockResource.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ObjectDataSourceMethodEditor.cs
- FormsAuthenticationCredentials.cs
- DirectoryRootQuery.cs
- MissingMemberException.cs
- UnsafeNativeMethodsPenimc.cs
- MemberDescriptor.cs