Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstancePersistenceCommandException.cs / 1305376 / InstancePersistenceCommandException.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 InstancePersistenceCommandException : InstancePersistenceException { const string InstanceIdName = "instancePersistenceInstanceId"; public InstancePersistenceCommandException() { } public InstancePersistenceCommandException(string message) : base(message) { } public InstancePersistenceCommandException(string message, Exception innerException) : base(message, innerException) { } public InstancePersistenceCommandException(XName commandName) : base(commandName) { } public InstancePersistenceCommandException(XName commandName, Guid instanceId) : base(commandName) { InstanceId = instanceId; } public InstancePersistenceCommandException(XName commandName, Exception innerException) : base(commandName, innerException) { } public InstancePersistenceCommandException(XName commandName, string message, Exception innerException) : base(commandName, message, innerException) { } public InstancePersistenceCommandException(XName commandName, Guid instanceId, Exception innerException) : base(commandName, innerException) { InstanceId = instanceId; } public InstancePersistenceCommandException(XName commandName, Guid instanceId, string message, Exception innerException) : base(commandName, message, innerException) { InstanceId = instanceId; } [SecurityCritical] protected InstancePersistenceCommandException(SerializationInfo info, StreamingContext context) : base(info, context) { InstanceId = (Guid) info.GetValue(InstanceIdName, typeof(Guid)); } public Guid InstanceId { 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(InstanceIdName, InstanceId, typeof(Guid)); } } } // 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
- UIElement.cs
- Crc32.cs
- GridViewRowPresenter.cs
- securitycriticaldataClass.cs
- RSAOAEPKeyExchangeFormatter.cs
- DocumentOrderQuery.cs
- EntityDataSourceValidationException.cs
- LookupBindingPropertiesAttribute.cs
- KeyValuePair.cs
- AuthorizationRule.cs
- TextInfo.cs
- RegexFCD.cs
- HttpContextServiceHost.cs
- InvalidAsynchronousStateException.cs
- PermissionAttributes.cs
- Component.cs
- PropertyStore.cs
- UserControlCodeDomTreeGenerator.cs
- Renderer.cs
- ActivityWithResultConverter.cs
- DbBuffer.cs
- WebBrowserNavigatedEventHandler.cs
- PrintDialog.cs
- DataGridItem.cs
- SchemaImporterExtensionElement.cs
- FtpRequestCacheValidator.cs
- ReadOnlyTernaryTree.cs
- JoinElimination.cs
- RangeContentEnumerator.cs
- ImportOptions.cs
- X509PeerCertificateElement.cs
- ConnectionsZone.cs
- URI.cs
- DataGridViewElement.cs
- PackWebResponse.cs
- PreApplicationStartMethodAttribute.cs
- NamespaceInfo.cs
- WebExceptionStatus.cs
- AnyReturnReader.cs
- MainMenu.cs
- ProjectionRewriter.cs
- ReceiveContent.cs
- TextTreeInsertUndoUnit.cs
- XmlSchemaIdentityConstraint.cs
- ModifiableIteratorCollection.cs
- ConfigXmlComment.cs
- RC2CryptoServiceProvider.cs
- ConfigurationSectionGroup.cs
- XmlSchemaAttributeGroupRef.cs
- CookieHandler.cs
- XPathExpr.cs
- FontWeights.cs
- Thread.cs
- SystemEvents.cs
- PrimaryKeyTypeConverter.cs
- nulltextcontainer.cs
- ListenerAdaptersInstallComponent.cs
- ProxyWebPartManager.cs
- DisplayNameAttribute.cs
- NamespaceList.cs
- CardSpacePolicyElement.cs
- PropertyGridDesigner.cs
- EdmComplexPropertyAttribute.cs
- glyphs.cs
- EditorZoneBase.cs
- DeleteHelper.cs
- CaseStatementSlot.cs
- DNS.cs
- AlternateView.cs
- EdmFunction.cs
- BaseDataListDesigner.cs
- DependencyPropertyKey.cs
- OdbcConnection.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- RequestCachingSection.cs
- ActivationServices.cs
- MetadataArtifactLoaderComposite.cs
- FloatUtil.cs
- HtmlControlPersistable.cs
- ListInitExpression.cs
- DesignerSerializationOptionsAttribute.cs
- TextProviderWrapper.cs
- BitmapEffect.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- ToolStripPanelRow.cs
- RootBrowserWindowAutomationPeer.cs
- DbException.cs
- DSACryptoServiceProvider.cs
- ConnectionPool.cs
- Label.cs
- ServiceDescription.cs
- ExecutionEngineException.cs
- PeerInputChannel.cs
- ManagementDateTime.cs
- Command.cs
- CodeSpit.cs
- WebEventCodes.cs
- SoapTypeAttribute.cs
- RadioButtonFlatAdapter.cs
- Drawing.cs