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
- StylusPlugin.cs
- EntityDesignerDataSourceView.cs
- FixedBufferAttribute.cs
- CheckBoxFlatAdapter.cs
- StatusBarItemAutomationPeer.cs
- BitmapEffectState.cs
- WorkflowViewManager.cs
- StringUtil.cs
- XsltLoader.cs
- CommonXSendMessage.cs
- FillErrorEventArgs.cs
- InkCanvasFeedbackAdorner.cs
- SafeMILHandle.cs
- ProcessHostMapPath.cs
- querybuilder.cs
- BitmapSource.cs
- ArgumentOutOfRangeException.cs
- PropertyGrid.cs
- PageThemeBuildProvider.cs
- DataSourceGeneratorException.cs
- TraceContextEventArgs.cs
- TableCellAutomationPeer.cs
- CollectionViewSource.cs
- TextElementEnumerator.cs
- RequestCachePolicyConverter.cs
- CompiledQueryCacheKey.cs
- SQLBytes.cs
- EventProviderWriter.cs
- ComponentDesigner.cs
- UnrecognizedAssertionsBindingElement.cs
- JournalEntry.cs
- Model3DGroup.cs
- WaitHandleCannotBeOpenedException.cs
- ReaderWriterLock.cs
- Matrix3DValueSerializer.cs
- DropSource.cs
- CollectionsUtil.cs
- UrlMappingCollection.cs
- GeneralTransform3DCollection.cs
- EventLogPermissionEntry.cs
- EventLogPermission.cs
- QilList.cs
- DecoderReplacementFallback.cs
- Model3D.cs
- ImplicitInputBrush.cs
- DependsOnAttribute.cs
- DataGridViewLinkCell.cs
- PageStatePersister.cs
- RowCache.cs
- MultipartIdentifier.cs
- CodeSnippetExpression.cs
- LayoutUtils.cs
- ResourceReferenceExpression.cs
- BamlLocalizableResource.cs
- PointLight.cs
- DrawingGroup.cs
- TreeNodeBindingCollection.cs
- DefaultAuthorizationContext.cs
- Point3D.cs
- ObjectSpanRewriter.cs
- DecoderExceptionFallback.cs
- DataGridRowsPresenter.cs
- CompletedAsyncResult.cs
- BindToObject.cs
- Vector3D.cs
- XmlTypeAttribute.cs
- FileStream.cs
- MulticastNotSupportedException.cs
- EventBookmark.cs
- SqlTopReducer.cs
- SqlDependencyListener.cs
- IUnknownConstantAttribute.cs
- OrderedDictionary.cs
- MemoryFailPoint.cs
- HtmlControl.cs
- RadioButtonAutomationPeer.cs
- ApplicationProxyInternal.cs
- RootBrowserWindowAutomationPeer.cs
- IFlowDocumentViewer.cs
- MarkupExtensionReturnTypeAttribute.cs
- ProcessStartInfo.cs
- OracleConnectionStringBuilder.cs
- TextContainerHelper.cs
- RowToFieldTransformer.cs
- NumericExpr.cs
- ListChangedEventArgs.cs
- WindowInteropHelper.cs
- DropShadowEffect.cs
- TextEditorContextMenu.cs
- COM2IDispatchConverter.cs
- ProgressiveCrcCalculatingStream.cs
- IntSecurity.cs
- SafeNativeMethods.cs
- DSASignatureFormatter.cs
- TypefaceMetricsCache.cs
- _NegoState.cs
- CultureInfo.cs
- DecoderNLS.cs
- JsonQNameDataContract.cs
- WebServiceAttribute.cs