Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------ // 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
- WebPartEditorApplyVerb.cs
- WinFormsComponentEditor.cs
- UnsignedPublishLicense.cs
- FolderBrowserDialog.cs
- WebPartConnectionsConfigureVerb.cs
- IncomingWebRequestContext.cs
- VectorCollection.cs
- ProjectedSlot.cs
- Button.cs
- KeyGesture.cs
- HtmlInputImage.cs
- QueryAsyncResult.cs
- ControlBuilderAttribute.cs
- ObjectParameter.cs
- XmlIterators.cs
- QueryCacheKey.cs
- WebPartCatalogCloseVerb.cs
- PeerNameRegistration.cs
- SqlParameter.cs
- XmlDocumentFragment.cs
- RevocationPoint.cs
- PngBitmapEncoder.cs
- MutexSecurity.cs
- WsdlHelpGeneratorElement.cs
- DrawingAttributesDefaultValueFactory.cs
- arabicshape.cs
- SqlDataSourceView.cs
- SetIterators.cs
- ColumnWidthChangedEvent.cs
- ListSourceHelper.cs
- DiagnosticTraceSource.cs
- FamilyMapCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- URLMembershipCondition.cs
- EtwTrackingParticipant.cs
- ReflectionUtil.cs
- CreateUserErrorEventArgs.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ReflectTypeDescriptionProvider.cs
- TextTreeInsertUndoUnit.cs
- ByteStreamGeometryContext.cs
- XsdSchemaFileEditor.cs
- MemberAccessException.cs
- RegexGroupCollection.cs
- BlurBitmapEffect.cs
- MexHttpBindingElement.cs
- DbConnectionPoolCounters.cs
- EntityDataSourceChangedEventArgs.cs
- SettingsBindableAttribute.cs
- TabControlEvent.cs
- Executor.cs
- SizeAnimationBase.cs
- DelegatingTypeDescriptionProvider.cs
- ToolStripItem.cs
- PathData.cs
- DbTypeMap.cs
- WebPartTransformerCollection.cs
- CodeDesigner.cs
- Evidence.cs
- SplineKeyFrames.cs
- LocalizationComments.cs
- BamlLocalizableResource.cs
- ScalarOps.cs
- UnsafeNativeMethods.cs
- DocumentReference.cs
- DBSqlParserColumnCollection.cs
- IApplicationTrustManager.cs
- RegisteredScript.cs
- GroupItem.cs
- XmlSchemaSet.cs
- RuleProcessor.cs
- HtmlInputControl.cs
- Lease.cs
- CompilerGlobalScopeAttribute.cs
- HtmlAnchor.cs
- Intellisense.cs
- InputQueue.cs
- QueryReaderSettings.cs
- PersonalizationStateQuery.cs
- ParserExtension.cs
- Soap12FormatExtensions.cs
- LinqDataSourceStatusEventArgs.cs
- TabRenderer.cs
- DataKeyCollection.cs
- DynamicPropertyReader.cs
- AccessViolationException.cs
- UntypedNullExpression.cs
- SByteStorage.cs
- WebPartPersonalization.cs
- ConfigurationManagerHelper.cs
- WebDisplayNameAttribute.cs
- CodeNamespaceImportCollection.cs
- StreamGeometry.cs
- TextParagraphCache.cs
- SessionPageStateSection.cs
- TextAdaptor.cs
- VectorCollectionConverter.cs
- SamlAuthorizationDecisionClaimResource.cs
- Compiler.cs
- SyndicationDeserializer.cs