Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / ServiceModel / Persistence / InstanceLockException.cs / 1305376 / InstanceLockException.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Persistence { using System; using System.Runtime.Serialization; using System.Security.Permissions; [Serializable] public class InstanceLockException : PersistenceException { Guid id; public InstanceLockException() : this(SR2.GetString(SR2.CannotAcquireLockDefault), null) { } public InstanceLockException(string message) : this(message, null) { } public InstanceLockException(string message, Exception innerException) : base(message, innerException) { } public InstanceLockException(Guid id) : this(SR2.GetString(SR2.CannotAcquireLockSpecific, id)) { this.id = id; } public InstanceLockException(Guid id, string message) : this(message, null) { this.id = id; } public InstanceLockException(Guid id, string message, Exception innerException) : base(message, innerException) { this.id = id; } public InstanceLockException(Guid id, Exception innerException) : this(SR2.GetString(SR2.CannotAcquireLockSpecific, id), innerException) { this.id = id; } protected InstanceLockException(SerializationInfo info, StreamingContext context) : base(info, context) { this.id = (Guid) info.GetValue("id", typeof(Guid)); } public Guid InstanceId { get { return this.id; } } [SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); info.AddValue("id", id); } } } // 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
- PageOrientation.cs
- InputLangChangeRequestEvent.cs
- ScriptComponentDescriptor.cs
- ManipulationDevice.cs
- AnnotationResourceChangedEventArgs.cs
- WizardForm.cs
- GradientBrush.cs
- AppliedDeviceFiltersDialog.cs
- AutomationElementIdentifiers.cs
- XmlArrayAttribute.cs
- WorkflowInstanceSuspendedRecord.cs
- NonVisualControlAttribute.cs
- TogglePattern.cs
- _HeaderInfo.cs
- ConditionalExpression.cs
- basecomparevalidator.cs
- ToolStripDropDownButton.cs
- ButtonBase.cs
- XmlSchemaSubstitutionGroup.cs
- Ipv6Element.cs
- BlurBitmapEffect.cs
- ConfigurationFileMap.cs
- CLSCompliantAttribute.cs
- UICuesEvent.cs
- WebPartDeleteVerb.cs
- ThicknessAnimationUsingKeyFrames.cs
- GlyphRun.cs
- DataGridCaption.cs
- DataControlImageButton.cs
- Documentation.cs
- Byte.cs
- Knowncolors.cs
- SerializableAttribute.cs
- TextRange.cs
- SafeEventLogWriteHandle.cs
- Events.cs
- JpegBitmapEncoder.cs
- SafeEventHandle.cs
- HierarchicalDataBoundControl.cs
- VarRefManager.cs
- UnauthorizedAccessException.cs
- SequenceFullException.cs
- RuntimeConfig.cs
- ToolConsole.cs
- XmlDataLoader.cs
- CodeAttributeDeclarationCollection.cs
- ObjectPersistData.cs
- Stopwatch.cs
- TemplatePagerField.cs
- UpdateManifestForBrowserApplication.cs
- DesignerTextWriter.cs
- ValidationSummary.cs
- Deflater.cs
- DocumentViewerHelper.cs
- Internal.cs
- IPAddressCollection.cs
- ArgumentsParser.cs
- PersonalizationProviderHelper.cs
- GroupBoxAutomationPeer.cs
- FileSystemEnumerable.cs
- StrongNameMembershipCondition.cs
- ServerIdentity.cs
- BaseParaClient.cs
- GridSplitterAutomationPeer.cs
- UntypedNullExpression.cs
- IApplicationTrustManager.cs
- CompensatableTransactionScopeActivityDesigner.cs
- BindingExpressionUncommonField.cs
- WebPartAuthorizationEventArgs.cs
- DataTableMapping.cs
- SourceLocationProvider.cs
- TreeViewItem.cs
- SrgsNameValueTag.cs
- CommandValueSerializer.cs
- ExceptionUtility.cs
- PageContentCollection.cs
- _NestedSingleAsyncResult.cs
- OleDbRowUpdatedEvent.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- DependencyPropertyHelper.cs
- PassportAuthentication.cs
- OutputCacheProfile.cs
- DynamicQueryableWrapper.cs
- DataGridViewRowConverter.cs
- OutKeywords.cs
- EditBehavior.cs
- ILGenerator.cs
- SecurityHeaderElementInferenceEngine.cs
- OutputCacheProfile.cs
- GridPatternIdentifiers.cs
- WithStatement.cs
- PagedDataSource.cs
- IndentTextWriter.cs
- CqlGenerator.cs
- XmlSchemaException.cs
- Inline.cs
- FixedElement.cs
- DataBoundControl.cs
- RawStylusInputCustomData.cs
- OutputCacheSettingsSection.cs