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
- Menu.cs
- RootCodeDomSerializer.cs
- AnnotationComponentChooser.cs
- XPathDescendantIterator.cs
- TextEditorDragDrop.cs
- Types.cs
- OutputWindow.cs
- MsmqInputChannelBase.cs
- ProviderConnectionPointCollection.cs
- DbRetry.cs
- CodeDefaultValueExpression.cs
- ScrollBarRenderer.cs
- AddressingProperty.cs
- TraversalRequest.cs
- ProcessDesigner.cs
- ScriptReference.cs
- FontDriver.cs
- ChannelServices.cs
- OdbcParameter.cs
- SiteIdentityPermission.cs
- HtmlToClrEventProxy.cs
- DataGridViewControlCollection.cs
- TextDocumentView.cs
- ModelFunction.cs
- CacheEntry.cs
- TextPenaltyModule.cs
- HtmlInputHidden.cs
- MimeXmlImporter.cs
- IdentityModelStringsVersion1.cs
- FontStyles.cs
- HelpFileFileNameEditor.cs
- KeyNotFoundException.cs
- SecurityTokenValidationException.cs
- SecurityTraceRecordHelper.cs
- DesignSurfaceEvent.cs
- PasswordPropertyTextAttribute.cs
- ThumbAutomationPeer.cs
- TypeDescriptor.cs
- AbsoluteQuery.cs
- Adorner.cs
- TemplateBindingExtension.cs
- ExternalFile.cs
- UIElement3DAutomationPeer.cs
- WmlLiteralTextAdapter.cs
- AnimationLayer.cs
- SortQueryOperator.cs
- UnknownWrapper.cs
- InstanceDataCollection.cs
- CrossAppDomainChannel.cs
- SystemUdpStatistics.cs
- AspCompat.cs
- HandlerFactoryCache.cs
- ProcessMonitor.cs
- ObjectReferenceStack.cs
- HostingMessageProperty.cs
- GenericAuthenticationEventArgs.cs
- PriorityQueue.cs
- TimeZone.cs
- Touch.cs
- CompositeFontFamily.cs
- ExpressionParser.cs
- SamlDelegatingWriter.cs
- TableLayoutPanel.cs
- FrameworkContentElementAutomationPeer.cs
- ProfileGroupSettingsCollection.cs
- ComPlusAuthorization.cs
- RecordManager.cs
- SmtpMail.cs
- ScopelessEnumAttribute.cs
- TableRow.cs
- DataGridViewImageCell.cs
- CodeNamespace.cs
- DataRecordObjectView.cs
- PropertyDescriptorComparer.cs
- PrimitiveRenderer.cs
- GroupJoinQueryOperator.cs
- PropertyValueChangedEvent.cs
- WpfGeneratedKnownProperties.cs
- NoneExcludedImageIndexConverter.cs
- SinglePageViewer.cs
- assemblycache.cs
- XmlSchemaAny.cs
- GeneralTransformCollection.cs
- ScriptDescriptor.cs
- StylusButtonEventArgs.cs
- _Win32.cs
- RuleConditionDialog.cs
- FormsAuthentication.cs
- SettingsProperty.cs
- AsyncOperation.cs
- CapabilitiesRule.cs
- IIS7UserPrincipal.cs
- XmlBinaryReader.cs
- Int32Storage.cs
- HistoryEventArgs.cs
- Baml2006KnownTypes.cs
- LayoutDump.cs
- Variable.cs
- TrackingValidationObjectDictionary.cs
- TableSectionStyle.cs