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
- PageAction.cs
- InvalidCommandTreeException.cs
- ImageFormatConverter.cs
- UniqueConstraint.cs
- Baml2006KnownTypes.cs
- _HTTPDateParse.cs
- Enlistment.cs
- SdlChannelSink.cs
- Block.cs
- TextElementAutomationPeer.cs
- SiteMapDataSourceView.cs
- PropertyDescriptorCollection.cs
- Splitter.cs
- BinaryKeyIdentifierClause.cs
- CustomAssemblyResolver.cs
- ExtensionDataReader.cs
- PassportAuthenticationEventArgs.cs
- Command.cs
- Property.cs
- ParseHttpDate.cs
- HitTestParameters.cs
- SimpleHandlerFactory.cs
- MaskedTextBox.cs
- ListViewInsertionMark.cs
- DataList.cs
- VersionUtil.cs
- AppDomainAttributes.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- ProxyAttribute.cs
- Connector.cs
- RC2.cs
- WorkflowRuntime.cs
- XmlILOptimizerVisitor.cs
- HashMembershipCondition.cs
- SystemThemeKey.cs
- AdapterDictionary.cs
- SimpleType.cs
- UrlMappingsModule.cs
- ElementMarkupObject.cs
- XPathCompileException.cs
- CompareValidator.cs
- SingleKeyFrameCollection.cs
- SmtpException.cs
- ConfigurationPermission.cs
- DummyDataSource.cs
- PrinterSettings.cs
- WebServiceErrorEvent.cs
- UITypeEditor.cs
- ReflectionHelper.cs
- BaseResourcesBuildProvider.cs
- X509InitiatorCertificateServiceElement.cs
- DetailsViewPageEventArgs.cs
- SafeNativeMethods.cs
- NameValueSectionHandler.cs
- IndexerNameAttribute.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ObjectListDataBindEventArgs.cs
- UIHelper.cs
- SapiGrammar.cs
- ReadOnlyTernaryTree.cs
- ArgumentsParser.cs
- SoapInteropTypes.cs
- LocalIdCollection.cs
- PersonalizationEntry.cs
- MatrixStack.cs
- FixedSOMTableCell.cs
- IDQuery.cs
- DropShadowEffect.cs
- ProtocolViolationException.cs
- DataServiceHost.cs
- DbConnectionInternal.cs
- HttpCacheParams.cs
- AnnotationAdorner.cs
- DataAdapter.cs
- Int16AnimationBase.cs
- Decorator.cs
- TimeStampChecker.cs
- LazyLoadBehavior.cs
- UpdateCommand.cs
- UnmanagedMemoryStreamWrapper.cs
- ServiceDebugElement.cs
- WorkflowStateRollbackService.cs
- CopyOnWriteList.cs
- Pair.cs
- WindowsSspiNegotiation.cs
- TransportOutputChannel.cs
- CodeSnippetStatement.cs
- CompleteWizardStep.cs
- PageFunction.cs
- DashStyle.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DataControlCommands.cs
- DataError.cs
- NotifyCollectionChangedEventArgs.cs
- DeviceFilterDictionary.cs
- AssignDesigner.xaml.cs
- Compress.cs
- TextTreeText.cs
- ConfigXmlSignificantWhitespace.cs
- ImageCodecInfoPrivate.cs