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
- OciHandle.cs
- EditorPart.cs
- InternalConfigEventArgs.cs
- PEFileEvidenceFactory.cs
- EditorZoneAutoFormat.cs
- HybridWebProxyFinder.cs
- ImportContext.cs
- GridView.cs
- WebPartEditorOkVerb.cs
- Hyperlink.cs
- ServiceModelEnumValidatorAttribute.cs
- TextMessageEncoder.cs
- Table.cs
- BitmapData.cs
- WeakEventTable.cs
- StringConcat.cs
- SuppressIldasmAttribute.cs
- QueryOptionExpression.cs
- ResolveCriteriaApril2005.cs
- ToolStripDropDownButton.cs
- ItemCheckedEvent.cs
- Calendar.cs
- Avt.cs
- PingOptions.cs
- EdmComplexPropertyAttribute.cs
- FileInfo.cs
- ListDictionaryInternal.cs
- XXXOnTypeBuilderInstantiation.cs
- CommonRemoteMemoryBlock.cs
- AsymmetricCryptoHandle.cs
- ExecutionScope.cs
- Util.cs
- PerformanceCounterManager.cs
- SymmetricSecurityProtocolFactory.cs
- ToolstripProfessionalRenderer.cs
- ItemChangedEventArgs.cs
- XmlSchemaChoice.cs
- SqlParameterizer.cs
- SqlNodeTypeOperators.cs
- HtmlEmptyTagControlBuilder.cs
- StorageAssociationTypeMapping.cs
- SubqueryRules.cs
- PropertyPathWorker.cs
- BitmapMetadataEnumerator.cs
- AutoScrollExpandMessageFilter.cs
- ScriptDescriptor.cs
- LinkedList.cs
- ContentControl.cs
- WinFormsSpinner.cs
- HandlerBase.cs
- DataGridViewCellMouseEventArgs.cs
- HtmlHead.cs
- BindableTemplateBuilder.cs
- DefinitionBase.cs
- ResizeGrip.cs
- NetMsmqSecurityMode.cs
- TdsParameterSetter.cs
- AuthStoreRoleProvider.cs
- ModelTreeEnumerator.cs
- XmlSchemaAppInfo.cs
- PathGeometry.cs
- ConfigurationErrorsException.cs
- NotImplementedException.cs
- FormViewCommandEventArgs.cs
- SmtpNetworkElement.cs
- NonVisualControlAttribute.cs
- ReadOnlyKeyedCollection.cs
- RegexRunnerFactory.cs
- ProfileEventArgs.cs
- TypeKeyValue.cs
- ManipulationCompletedEventArgs.cs
- TextEditorContextMenu.cs
- TreeNodeStyleCollection.cs
- DBCSCodePageEncoding.cs
- StartUpEventArgs.cs
- MiniLockedBorderGlyph.cs
- TypedElement.cs
- CapabilitiesAssignment.cs
- MediaContext.cs
- AutomationProperty.cs
- GenericsInstances.cs
- AccessedThroughPropertyAttribute.cs
- securitycriticaldataformultiplegetandset.cs
- SafeSecurityHandles.cs
- MimeTypePropertyAttribute.cs
- UnSafeCharBuffer.cs
- Helpers.cs
- DataGridViewCellStyle.cs
- HttpCapabilitiesSectionHandler.cs
- WebControlParameterProxy.cs
- CompilationPass2TaskInternal.cs
- Html32TextWriter.cs
- Classification.cs
- TreeViewDesigner.cs
- TableItemPattern.cs
- lengthconverter.cs
- SelectionItemProviderWrapper.cs
- Pointer.cs
- COM2ExtendedTypeConverter.cs
- ReferenceEqualityComparer.cs