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
- PersonalizationProviderCollection.cs
- FastPropertyAccessor.cs
- TraceContext.cs
- SessionStateSection.cs
- XmlFileEditor.cs
- PrimaryKeyTypeConverter.cs
- Blend.cs
- DragDeltaEventArgs.cs
- VisualStyleRenderer.cs
- ManagedWndProcTracker.cs
- ReadingWritingEntityEventArgs.cs
- FileDialog_Vista.cs
- Font.cs
- CreateUserWizardStep.cs
- MetadataItemCollectionFactory.cs
- DataGridRowsPresenter.cs
- ToolBarPanel.cs
- ResourceReader.cs
- WindowsListViewSubItem.cs
- WebPartVerb.cs
- ReaderOutput.cs
- CodeTypeMember.cs
- UInt32.cs
- View.cs
- invalidudtexception.cs
- BamlLocalizationDictionary.cs
- EntityClientCacheEntry.cs
- Misc.cs
- SqlFunctionAttribute.cs
- CacheMemory.cs
- PhysicalAddress.cs
- HtmlTableRowCollection.cs
- ToolStripItem.cs
- Rule.cs
- XmlSchemaImport.cs
- ScrollProviderWrapper.cs
- _NestedSingleAsyncResult.cs
- PropertyManager.cs
- IisTraceWebEventProvider.cs
- PowerStatus.cs
- InkCanvasSelection.cs
- _SslState.cs
- MembershipUser.cs
- WebControlAdapter.cs
- UIElementHelper.cs
- NullableDoubleMinMaxAggregationOperator.cs
- FactoryGenerator.cs
- IRCollection.cs
- COM2ComponentEditor.cs
- DecimalStorage.cs
- StrokeIntersection.cs
- OperationContext.cs
- SrgsGrammarCompiler.cs
- Page.cs
- EntityDataSourceQueryBuilder.cs
- BitmapEffectOutputConnector.cs
- SortKey.cs
- ObjectDataSourceEventArgs.cs
- ContractMethodParameterInfo.cs
- DataBinder.cs
- ParallelTimeline.cs
- PropertyChangeTracker.cs
- RelationshipConverter.cs
- XmlSiteMapProvider.cs
- NavigationProperty.cs
- KnownBoxes.cs
- HostProtectionPermission.cs
- Grid.cs
- Keywords.cs
- HttpException.cs
- SQLDecimalStorage.cs
- DynamicVirtualDiscoSearcher.cs
- PartialList.cs
- TraceSection.cs
- SqlBinder.cs
- XmlResolver.cs
- VScrollProperties.cs
- DataGridViewUtilities.cs
- GeneralTransformGroup.cs
- PartialTrustVisibleAssemblyCollection.cs
- Style.cs
- IntPtr.cs
- WaitHandle.cs
- TreeNodeConverter.cs
- DependencyPropertyChangedEventArgs.cs
- Metafile.cs
- FixedSOMTableRow.cs
- StructuralComparisons.cs
- LazyTextWriterCreator.cs
- OperationAbortedException.cs
- SqlClientWrapperSmiStreamChars.cs
- ControlPaint.cs
- PropertyNames.cs
- FileSystemEventArgs.cs
- AsymmetricCryptoHandle.cs
- _LazyAsyncResult.cs
- KnownTypesProvider.cs
- SelectionChangedEventArgs.cs
- XmlSchemaNotation.cs
- ComponentResourceManager.cs