Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------- // 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
- RegionInfo.cs
- AlternationConverter.cs
- DefaultBindingPropertyAttribute.cs
- TextWriterTraceListener.cs
- OdbcCommand.cs
- XmlWriter.cs
- GenericsInstances.cs
- UpdatePanelControlTrigger.cs
- FormViewPageEventArgs.cs
- StructureChangedEventArgs.cs
- ListSortDescriptionCollection.cs
- NodeInfo.cs
- XmlSchemaComplexType.cs
- ValidationResults.cs
- WriteableBitmap.cs
- CapiNative.cs
- ConstraintEnumerator.cs
- ConfigurationManagerInternalFactory.cs
- OpacityConverter.cs
- BitmapEffectGroup.cs
- ExtensionSurface.cs
- basecomparevalidator.cs
- PrimitiveXmlSerializers.cs
- TypeToken.cs
- WindowPattern.cs
- NameValueFileSectionHandler.cs
- AttributeInfo.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ActiveXHelper.cs
- UserControl.cs
- ObjectListShowCommandsEventArgs.cs
- SettingsContext.cs
- URLIdentityPermission.cs
- MarkedHighlightComponent.cs
- CodePageEncoding.cs
- DesignConnectionCollection.cs
- BmpBitmapEncoder.cs
- Currency.cs
- X509AsymmetricSecurityKey.cs
- SecurityRuntime.cs
- ColorDialog.cs
- ClientSettingsProvider.cs
- SimpleHandlerFactory.cs
- SecurityRuntime.cs
- TlsnegoTokenAuthenticator.cs
- NativeCppClassAttribute.cs
- Converter.cs
- PointF.cs
- AdjustableArrowCap.cs
- EnumerationRangeValidationUtil.cs
- EntityDataSourceConfigureObjectContext.cs
- ColumnClickEvent.cs
- WebPartDescription.cs
- XmlILConstructAnalyzer.cs
- MemoryRecordBuffer.cs
- GcSettings.cs
- EmptyReadOnlyDictionaryInternal.cs
- TableParaClient.cs
- GPPOINTF.cs
- TextPointer.cs
- DataListItemCollection.cs
- MemberDomainMap.cs
- GiveFeedbackEventArgs.cs
- EntityContainer.cs
- EntityDataSourceDesigner.cs
- SmiConnection.cs
- AttributeData.cs
- WorkItem.cs
- _ContextAwareResult.cs
- WindowCollection.cs
- DrawingVisualDrawingContext.cs
- SqlUDTStorage.cs
- SwitchExpression.cs
- EventListenerClientSide.cs
- WindowClosedEventArgs.cs
- CompilerResults.cs
- controlskin.cs
- BulletedList.cs
- SelectionProcessor.cs
- DescendantOverDescendantQuery.cs
- GridViewRowEventArgs.cs
- TimelineGroup.cs
- NewItemsContextMenuStrip.cs
- WorkflowClientDeliverMessageWrapper.cs
- DataRelationCollection.cs
- serverconfig.cs
- SelectionWordBreaker.cs
- NavigationFailedEventArgs.cs
- ImageBrush.cs
- MenuStrip.cs
- Pen.cs
- DateTimePicker.cs
- Transform3DGroup.cs
- DescendentsWalkerBase.cs
- HashHelper.cs
- ContentPropertyAttribute.cs
- MailWebEventProvider.cs
- DBCommand.cs
- bindurihelper.cs
- LicenseManager.cs