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
- CodeTypeReference.cs
- InitializingNewItemEventArgs.cs
- DataSourceControlBuilder.cs
- FlagsAttribute.cs
- PersonalizationAdministration.cs
- DPCustomTypeDescriptor.cs
- OrderByBuilder.cs
- XmlCharacterData.cs
- SqlFactory.cs
- WindowsFormsSynchronizationContext.cs
- PropertyNames.cs
- RenderTargetBitmap.cs
- MailDefinition.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- XmlSchemaComplexContentRestriction.cs
- ISAPIRuntime.cs
- Rect3D.cs
- CharacterString.cs
- validation.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ImageAnimator.cs
- TextEncodedRawTextWriter.cs
- ToolTipService.cs
- DataMember.cs
- WindowProviderWrapper.cs
- ListItemsPage.cs
- FacetDescriptionElement.cs
- XmlSchemaAppInfo.cs
- ChtmlSelectionListAdapter.cs
- HighlightVisual.cs
- TdsParserSessionPool.cs
- SyntaxCheck.cs
- ReadWriteObjectLock.cs
- WebPartChrome.cs
- DataGridSortCommandEventArgs.cs
- RangeValueProviderWrapper.cs
- EntryWrittenEventArgs.cs
- ServiceObjectContainer.cs
- ToolZone.cs
- ScriptBehaviorDescriptor.cs
- EventMappingSettingsCollection.cs
- TimeSpanSecondsConverter.cs
- HttpCachePolicyElement.cs
- XmlSchemaExternal.cs
- InvalidCastException.cs
- UnaryNode.cs
- BindingNavigator.cs
- BitmapFrame.cs
- SerializableTypeCodeDomSerializer.cs
- EnvelopedPkcs7.cs
- SmiGettersStream.cs
- SettingsSection.cs
- ListDictionaryInternal.cs
- BaseDataBoundControl.cs
- PersonalizationStateInfo.cs
- WebResponse.cs
- SortableBindingList.cs
- SchemaObjectWriter.cs
- Speller.cs
- RtfToXamlReader.cs
- SelfSignedCertificate.cs
- SrgsElementFactory.cs
- SiteMapNode.cs
- RegexReplacement.cs
- RenderOptions.cs
- X509PeerCertificateAuthenticationElement.cs
- MultiByteCodec.cs
- WizardStepBase.cs
- AutomationIdentifier.cs
- UnsafeMethods.cs
- AsyncDataRequest.cs
- SmtpNtlmAuthenticationModule.cs
- NullableLongSumAggregationOperator.cs
- Subtree.cs
- RemoteWebConfigurationHostServer.cs
- MenuItemAutomationPeer.cs
- ResourceAttributes.cs
- TextRunCache.cs
- LocationSectionRecord.cs
- AuthorizationRule.cs
- NetCodeGroup.cs
- RuntimeConfig.cs
- ElementAtQueryOperator.cs
- CryptoHelper.cs
- PartitionResolver.cs
- PixelFormats.cs
- AuthorizationPolicyTypeElementCollection.cs
- Grid.cs
- OneOf.cs
- SelectionChangedEventArgs.cs
- CustomCredentialPolicy.cs
- CompositeTypefaceMetrics.cs
- ExpressionParser.cs
- BitmapEffectInputData.cs
- PrintPreviewControl.cs
- SqlCacheDependency.cs
- AddInServer.cs
- MenuItemStyle.cs
- FilteredDataSetHelper.cs
- ModelChangedEventArgsImpl.cs