Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstanceLockLostException.cs / 1305376 / InstanceLockLostException.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 InstanceLockLostException : InstancePersistenceCommandException
{
public InstanceLockLostException()
: this(SRCore.InstanceLockLostDefault, null)
{
}
public InstanceLockLostException(string message)
: this(message, null)
{
}
public InstanceLockLostException(string message, Exception innerException)
: base(message, innerException)
{
}
public InstanceLockLostException(XName commandName, Guid instanceId)
: this(commandName, instanceId, null)
{
}
public InstanceLockLostException(XName commandName, Guid instanceId, Exception innerException)
: this(commandName, instanceId, ToMessage(instanceId), innerException)
{
}
public InstanceLockLostException(XName commandName, Guid instanceId, string message, Exception innerException)
: base(commandName, instanceId, message, innerException)
{
}
[SecurityCritical]
protected InstanceLockLostException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
static string ToMessage(Guid instanceId)
{
if (instanceId != Guid.Empty)
{
return SRCore.InstanceLockLostSpecific(instanceId);
}
return SRCore.InstanceLockLostDefault;
}
}
}
// 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
- XmlNodeReader.cs
- PrinterSettings.cs
- EntityDataSourceEntityTypeFilterItem.cs
- QueryStringParameter.cs
- PropertyTabAttribute.cs
- SecureConversationSecurityTokenParameters.cs
- TraceFilter.cs
- ByteAnimationUsingKeyFrames.cs
- ExchangeUtilities.cs
- BufferedGraphicsManager.cs
- SymmetricAlgorithm.cs
- categoryentry.cs
- HeaderedItemsControl.cs
- PrintPreviewDialog.cs
- KeyNotFoundException.cs
- PackageDigitalSignatureManager.cs
- WsatEtwTraceListener.cs
- SafeFileHandle.cs
- ForwardPositionQuery.cs
- TextBoxBase.cs
- PathSegment.cs
- StateRuntime.cs
- KeyedHashAlgorithm.cs
- CompareValidator.cs
- XmlSerializerNamespaces.cs
- XmlSchemaAttribute.cs
- DoubleAnimationUsingPath.cs
- CodeTypeReferenceExpression.cs
- XmlSchemaComplexContent.cs
- CodePrimitiveExpression.cs
- CrossAppDomainChannel.cs
- InheritanceService.cs
- FrugalMap.cs
- ClientProxyGenerator.cs
- TemplateControlBuildProvider.cs
- NotifyIcon.cs
- CssStyleCollection.cs
- PolyBezierSegmentFigureLogic.cs
- UIElementAutomationPeer.cs
- WebPartDeleteVerb.cs
- ToolboxItemCollection.cs
- BufferAllocator.cs
- ColumnResult.cs
- ScriptDescriptor.cs
- XmlDesignerDataSourceView.cs
- DataPointer.cs
- BlurBitmapEffect.cs
- Region.cs
- EntryWrittenEventArgs.cs
- FileDialog.cs
- GradientStop.cs
- MessageBox.cs
- WebPageTraceListener.cs
- SafeNativeMethods.cs
- ContractNamespaceAttribute.cs
- HtmlImageAdapter.cs
- DynamicMethod.cs
- NetPeerTcpBindingElement.cs
- ChannelTraceRecord.cs
- MaskedTextBox.cs
- CharacterBuffer.cs
- QualifiedCellIdBoolean.cs
- ImageKeyConverter.cs
- XmlSerializerAssemblyAttribute.cs
- CharStorage.cs
- DataServiceHost.cs
- ButtonField.cs
- ToolBar.cs
- TextServicesCompartmentContext.cs
- MenuItemStyle.cs
- EventLogPermissionEntryCollection.cs
- TextRangeEditTables.cs
- List.cs
- IndexerNameAttribute.cs
- CryptoKeySecurity.cs
- MatcherBuilder.cs
- BamlResourceDeserializer.cs
- DeviceContexts.cs
- BCryptNative.cs
- XmlProcessingInstruction.cs
- DataGridCaption.cs
- OLEDB_Enum.cs
- WindowsGraphicsCacheManager.cs
- XmlRootAttribute.cs
- WmlCommandAdapter.cs
- RegexStringValidatorAttribute.cs
- XmlNode.cs
- StorageComplexPropertyMapping.cs
- ToolStripItemTextRenderEventArgs.cs
- MenuEventArgs.cs
- ByeMessageApril2005.cs
- ParameterModifier.cs
- ButtonFieldBase.cs
- StyleTypedPropertyAttribute.cs
- CodeDomConfigurationHandler.cs
- DesignTimeParseData.cs
- SqlOuterApplyReducer.cs
- BitmapEffectGeneralTransform.cs
- AdapterDictionary.cs
- DbModificationCommandTree.cs