Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstancePersistenceException.cs / 1305376 / InstancePersistenceException.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 InstancePersistenceException : Exception { const string CommandNameName = "instancePersistenceCommandName"; public InstancePersistenceException() : base(ToMessage(null)) { } public InstancePersistenceException(string message) : base(message) { } public InstancePersistenceException(string message, Exception innerException) : base(message, innerException) { } public InstancePersistenceException(XName commandName) : this(commandName, ToMessage(commandName)) { } public InstancePersistenceException(XName commandName, Exception innerException) : this(commandName, ToMessage(commandName), innerException) { } public InstancePersistenceException(XName commandName, string message) : base(message) { CommandName = commandName; } public InstancePersistenceException(XName commandName, string message, Exception innerException) : base(message, innerException) { CommandName = commandName; } [SecurityCritical] protected InstancePersistenceException(SerializationInfo info, StreamingContext context) : base(info, context) { CommandName = info.GetValue(CommandNameName, typeof(XName)) as XName; } public XName CommandName { 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(CommandNameName, CommandName, typeof(XName)); } static string ToMessage(XName commandName) { return commandName == null ? SRCore.GenericInstanceCommandNull : SRCore.GenericInstanceCommand(commandName); } } } // 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
- LineMetrics.cs
- Hash.cs
- SharedPerformanceCounter.cs
- FixedNode.cs
- EventMap.cs
- ActivationService.cs
- DataViewManagerListItemTypeDescriptor.cs
- ComponentChangedEvent.cs
- RtfToken.cs
- CategoryAttribute.cs
- SynchronizingStream.cs
- DataShape.cs
- ISCIIEncoding.cs
- SimpleBitVector32.cs
- SiteMembershipCondition.cs
- VisualBasicImportReference.cs
- GC.cs
- DataSourceCacheDurationConverter.cs
- SessionStateModule.cs
- XmlNamespaceMapping.cs
- ButtonStandardAdapter.cs
- GroupBox.cs
- PageSettings.cs
- App.cs
- ConstructorBuilder.cs
- JoinSymbol.cs
- CompilationSection.cs
- RegexRunnerFactory.cs
- SignedInfo.cs
- DynamicExpression.cs
- VarRemapper.cs
- EmptyCollection.cs
- AssertSection.cs
- DbConnectionInternal.cs
- MLangCodePageEncoding.cs
- FormatConvertedBitmap.cs
- UIPropertyMetadata.cs
- _KerberosClient.cs
- StylusDevice.cs
- IApplicationTrustManager.cs
- SignedXml.cs
- SlotInfo.cs
- StructuredTypeEmitter.cs
- Transactions.cs
- HtmlElement.cs
- HostedHttpTransportManager.cs
- SequentialUshortCollection.cs
- DrawingState.cs
- PreviewKeyDownEventArgs.cs
- SudsWriter.cs
- ConditionalAttribute.cs
- Invariant.cs
- UserControl.cs
- GlobalProxySelection.cs
- LassoHelper.cs
- ViewGenResults.cs
- DocumentsTrace.cs
- StringComparer.cs
- ValueQuery.cs
- DataService.cs
- ServiceHostFactory.cs
- ValidationRule.cs
- VectorValueSerializer.cs
- SizeIndependentAnimationStorage.cs
- TableLayoutPanelCellPosition.cs
- FrugalMap.cs
- IImplicitResourceProvider.cs
- FormsAuthenticationCredentials.cs
- ViewManager.cs
- EntityDataSourceReferenceGroup.cs
- Viewport3DVisual.cs
- CodeTypeMember.cs
- SQLInt16Storage.cs
- TypeContext.cs
- Selection.cs
- HostProtectionException.cs
- ConnectionPoolManager.cs
- WebPartConnectVerb.cs
- EventProviderWriter.cs
- StaticExtensionConverter.cs
- MergeExecutor.cs
- AccessDataSourceView.cs
- VerificationAttribute.cs
- NavigationHelper.cs
- Pointer.cs
- UnsafeNativeMethodsPenimc.cs
- OutOfMemoryException.cs
- OrderByQueryOptionExpression.cs
- LogAppendAsyncResult.cs
- TextSpanModifier.cs
- HandlerFactoryCache.cs
- TdsParser.cs
- DesignConnectionCollection.cs
- DrawingAttributeSerializer.cs
- IdentityElement.cs
- Selector.cs
- DropShadowBitmapEffect.cs
- Localizer.cs
- XMLSyntaxException.cs
- PropertyOverridesDialog.cs