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
- PathData.cs
- XmlSignatureManifest.cs
- DataGridViewDataConnection.cs
- ContentElement.cs
- DataTableClearEvent.cs
- TextEditorSpelling.cs
- OpenFileDialog.cs
- SchemaReference.cs
- EventEntry.cs
- CodeGenerator.cs
- MinMaxParagraphWidth.cs
- ProtocolsConfigurationEntry.cs
- DBAsyncResult.cs
- XmlQueryType.cs
- RSACryptoServiceProvider.cs
- EditorPartChrome.cs
- SizeFConverter.cs
- SafeWaitHandle.cs
- DispatchWrapper.cs
- UnmanagedBitmapWrapper.cs
- XpsFontSerializationService.cs
- CanonicalFormWriter.cs
- RandomNumberGenerator.cs
- ForeignConstraint.cs
- DataGridViewDataConnection.cs
- CustomErrorsSection.cs
- MissingFieldException.cs
- SimpleFileLog.cs
- ActivityPreviewDesigner.cs
- DocumentGrid.cs
- Point3DAnimation.cs
- Padding.cs
- SessionStateModule.cs
- PeerApplicationLaunchInfo.cs
- SqlTopReducer.cs
- GeometryModel3D.cs
- ExecutedRoutedEventArgs.cs
- WebBrowserNavigatedEventHandler.cs
- TableFieldsEditor.cs
- StringExpressionSet.cs
- FlowLayout.cs
- Statements.cs
- SoapBinding.cs
- EntityTemplateUserControl.cs
- PreloadedPackages.cs
- XPathMultyIterator.cs
- DBConcurrencyException.cs
- AddingNewEventArgs.cs
- Error.cs
- XmlWellformedWriterHelpers.cs
- MenuItemStyleCollection.cs
- ValueSerializerAttribute.cs
- PropertyValueUIItem.cs
- HitTestFilterBehavior.cs
- Camera.cs
- ContextCorrelationInitializer.cs
- Evaluator.cs
- figurelengthconverter.cs
- EntityPropertyMappingAttribute.cs
- RegistryKey.cs
- EarlyBoundInfo.cs
- TraceSource.cs
- HatchBrush.cs
- processwaithandle.cs
- CursorInteropHelper.cs
- UnknownWrapper.cs
- FilteredReadOnlyMetadataCollection.cs
- ExeContext.cs
- HasCopySemanticsAttribute.cs
- PublisherMembershipCondition.cs
- CompilationUtil.cs
- Enumerable.cs
- XPathNavigator.cs
- RichTextBoxAutomationPeer.cs
- FacetDescriptionElement.cs
- SqlConnectionPoolProviderInfo.cs
- StrongNameUtility.cs
- ImmComposition.cs
- DataAccessor.cs
- HttpRawResponse.cs
- BaseParser.cs
- FontUnitConverter.cs
- OleDbRowUpdatingEvent.cs
- TabItemWrapperAutomationPeer.cs
- CapabilitiesUse.cs
- PrimitiveXmlSerializers.cs
- ClientSideQueueItem.cs
- DataGridViewCellStyleEditor.cs
- AutoFocusStyle.xaml.cs
- TextTreeTextNode.cs
- ThousandthOfEmRealDoubles.cs
- ValidatingReaderNodeData.cs
- LoadRetryHandler.cs
- RectIndependentAnimationStorage.cs
- WindowsButton.cs
- SByte.cs
- XmlEnumAttribute.cs
- FilteredAttributeCollection.cs
- ControlCommandSet.cs
- PositiveTimeSpanValidator.cs