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
- DBBindings.cs
- RemoteWebConfigurationHostStream.cs
- FollowerQueueCreator.cs
- StackSpiller.Temps.cs
- UserPreferenceChangingEventArgs.cs
- BamlRecordHelper.cs
- documentsequencetextview.cs
- Effect.cs
- Parallel.cs
- WebBrowserNavigatedEventHandler.cs
- ListViewGroup.cs
- HtmlTableRowCollection.cs
- URI.cs
- TextDecoration.cs
- OutputCacheProfile.cs
- DefaultWorkflowTransactionService.cs
- Journal.cs
- AddInSegmentDirectoryNotFoundException.cs
- TemplateLookupAction.cs
- TimestampInformation.cs
- SystemBrushes.cs
- Color.cs
- SessionStateModule.cs
- DES.cs
- ToolStripDropDownItem.cs
- ObjectSet.cs
- ServicePoint.cs
- GeometryGroup.cs
- CallbackHandler.cs
- Clipboard.cs
- CollectionConverter.cs
- AllMembershipCondition.cs
- WindowsAuthenticationEventArgs.cs
- ItemsControlAutomationPeer.cs
- SystemUdpStatistics.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- SymmetricAlgorithm.cs
- CustomExpression.cs
- WebPartPersonalization.cs
- SystemWebSectionGroup.cs
- MatrixStack.cs
- ImportDesigner.xaml.cs
- PassportAuthentication.cs
- CompositeKey.cs
- DecimalAnimation.cs
- Command.cs
- OleServicesContext.cs
- NamespaceList.cs
- DbRetry.cs
- unsafenativemethodsother.cs
- SelectionItemPattern.cs
- ProfileParameter.cs
- Animatable.cs
- XmlSchemaComplexContentExtension.cs
- PixelFormat.cs
- GACIdentityPermission.cs
- ModulesEntry.cs
- ContentPosition.cs
- BitmapEffectCollection.cs
- Helpers.cs
- TaskExtensions.cs
- EntityDataSource.cs
- PlatformCulture.cs
- StylusPlugin.cs
- SchemaMapping.cs
- GridViewHeaderRowPresenter.cs
- DataGridViewColumnEventArgs.cs
- MetadataArtifactLoaderCompositeResource.cs
- FileInfo.cs
- PresentationSource.cs
- InplaceBitmapMetadataWriter.cs
- ConsoleKeyInfo.cs
- MetafileHeader.cs
- PermissionToken.cs
- ComboBoxDesigner.cs
- FlowDocument.cs
- LabelAutomationPeer.cs
- BinaryObjectWriter.cs
- nulltextnavigator.cs
- Mappings.cs
- FieldMetadata.cs
- DataTransferEventArgs.cs
- ValueUnavailableException.cs
- SmtpCommands.cs
- QilCloneVisitor.cs
- Operator.cs
- MailSettingsSection.cs
- COM2ExtendedTypeConverter.cs
- DatePickerAutomationPeer.cs
- XmlDataProvider.cs
- ControlValuePropertyAttribute.cs
- X509AsymmetricSecurityKey.cs
- AttributeSetAction.cs
- TraceProvider.cs
- SingleAnimation.cs
- InputScopeAttribute.cs
- WebResourceUtil.cs
- ReflectionTypeLoadException.cs
- ListBox.cs
- ConnectionManagementSection.cs