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
- CacheVirtualItemsEvent.cs
- XmlSchemaSequence.cs
- ReflectionUtil.cs
- DescendantQuery.cs
- httpapplicationstate.cs
- DefaultSettingsSection.cs
- Literal.cs
- TranslateTransform3D.cs
- SafeRightsManagementPubHandle.cs
- ListViewGroupItemCollection.cs
- FixedSchema.cs
- XmlArrayItemAttribute.cs
- CodePageEncoding.cs
- ColorConvertedBitmapExtension.cs
- StickyNoteAnnotations.cs
- SecureUICommand.cs
- WebPartCloseVerb.cs
- EncoderExceptionFallback.cs
- ServicePointManager.cs
- IdnMapping.cs
- DataRowComparer.cs
- SafeEventHandle.cs
- PeerDuplexChannel.cs
- FrameDimension.cs
- ConnectionStringSettingsCollection.cs
- OutOfProcStateClientManager.cs
- DataProtection.cs
- URLIdentityPermission.cs
- BoolExpression.cs
- Vector3D.cs
- MultilineStringConverter.cs
- InstancePersistenceCommandException.cs
- TagPrefixAttribute.cs
- Error.cs
- PaginationProgressEventArgs.cs
- PolicyConversionContext.cs
- WebPartDisplayModeCancelEventArgs.cs
- CorrelationKeyCalculator.cs
- TextBlockAutomationPeer.cs
- ComplexPropertyEntry.cs
- TraceShell.cs
- ImageList.cs
- IxmlLineInfo.cs
- XpsInterleavingPolicy.cs
- MemberMemberBinding.cs
- JpegBitmapEncoder.cs
- ViewSimplifier.cs
- GlyphRunDrawing.cs
- LocatorBase.cs
- View.cs
- HelpProvider.cs
- SetterBase.cs
- ExpressionBindingCollection.cs
- XmlEnumAttribute.cs
- OdbcHandle.cs
- X509CertificateRecipientClientCredential.cs
- _CookieModule.cs
- SoapBinding.cs
- Span.cs
- AsyncOperation.cs
- ConcurrentQueue.cs
- SmtpException.cs
- IdentifierElement.cs
- QilName.cs
- WorkflowTransactionService.cs
- ChildTable.cs
- CompositeFontInfo.cs
- StreamGeometry.cs
- shaperfactory.cs
- TemplatePagerField.cs
- RefType.cs
- MemberNameValidator.cs
- TlsnegoTokenAuthenticator.cs
- Context.cs
- Random.cs
- Tuple.cs
- SettingsSection.cs
- HttpResponseInternalWrapper.cs
- MemberMaps.cs
- ServiceOperation.cs
- ReflectionTypeLoadException.cs
- DataRowCollection.cs
- SessionEndingEventArgs.cs
- ToolStripPanelRow.cs
- BreakSafeBase.cs
- ProcessModelSection.cs
- VectorAnimationUsingKeyFrames.cs
- DSASignatureFormatter.cs
- ZipIOExtraField.cs
- OutKeywords.cs
- DataGridViewHeaderCell.cs
- CellLabel.cs
- SafeWaitHandle.cs
- typedescriptorpermissionattribute.cs
- PrePostDescendentsWalker.cs
- TypeDescriptionProvider.cs
- ExtractorMetadata.cs
- WebPartConnectionsDisconnectVerb.cs
- HttpCapabilitiesSectionHandler.cs
- ZoomPercentageConverter.cs