Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstanceNotReadyException.cs / 1305376 / InstanceNotReadyException.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 InstanceNotReadyException : InstancePersistenceCommandException { public InstanceNotReadyException() : this(SRCore.InstanceNotReadyDefault, null) { } public InstanceNotReadyException(string message) : this(message, null) { } public InstanceNotReadyException(string message, Exception innerException) : base(message, innerException) { } public InstanceNotReadyException(XName commandName, Guid instanceId) : this(commandName, instanceId, null) { } public InstanceNotReadyException(XName commandName, Guid instanceId, Exception innerException) : this(commandName, instanceId, ToMessage(instanceId), innerException) { } public InstanceNotReadyException(XName commandName, Guid instanceId, string message, Exception innerException) : base(commandName, instanceId, message, innerException) { } [SecurityCritical] protected InstanceNotReadyException(SerializationInfo info, StreamingContext context) : base(info, context) { } static string ToMessage(Guid instanceId) { if (instanceId != Guid.Empty) { return SRCore.InstanceNotReadySpecific(instanceId); } return SRCore.InstanceNotReadyDefault; } } } // 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 InstanceNotReadyException : InstancePersistenceCommandException { public InstanceNotReadyException() : this(SRCore.InstanceNotReadyDefault, null) { } public InstanceNotReadyException(string message) : this(message, null) { } public InstanceNotReadyException(string message, Exception innerException) : base(message, innerException) { } public InstanceNotReadyException(XName commandName, Guid instanceId) : this(commandName, instanceId, null) { } public InstanceNotReadyException(XName commandName, Guid instanceId, Exception innerException) : this(commandName, instanceId, ToMessage(instanceId), innerException) { } public InstanceNotReadyException(XName commandName, Guid instanceId, string message, Exception innerException) : base(commandName, instanceId, message, innerException) { } [SecurityCritical] protected InstanceNotReadyException(SerializationInfo info, StreamingContext context) : base(info, context) { } static string ToMessage(Guid instanceId) { if (instanceId != Guid.Empty) { return SRCore.InstanceNotReadySpecific(instanceId); } return SRCore.InstanceNotReadyDefault; } } } // 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
- FrugalMap.cs
- CryptoStream.cs
- WindowVisualStateTracker.cs
- ParagraphResult.cs
- SendReply.cs
- IDReferencePropertyAttribute.cs
- SiteMapDataSourceDesigner.cs
- ReflectionHelper.cs
- ClusterRegistryConfigurationProvider.cs
- DummyDataSource.cs
- ExternalCalls.cs
- BinaryObjectInfo.cs
- SessionStateSection.cs
- Literal.cs
- SerializationUtilities.cs
- LockedHandleGlyph.cs
- OleDbWrapper.cs
- SystemKeyConverter.cs
- MobileSysDescriptionAttribute.cs
- PenContext.cs
- SessionStateUtil.cs
- GPRECT.cs
- ObjectDataSourceDesigner.cs
- DoubleAnimationUsingKeyFrames.cs
- SQLChars.cs
- Drawing.cs
- embossbitmapeffect.cs
- ZoneButton.cs
- CustomAttribute.cs
- MultiViewDesigner.cs
- UrlPath.cs
- CodeTypeDeclarationCollection.cs
- DataContractAttribute.cs
- XmlProcessingInstruction.cs
- DragEvent.cs
- BidOverLoads.cs
- QueryContinueDragEventArgs.cs
- CheckBoxField.cs
- SizeAnimationClockResource.cs
- EUCJPEncoding.cs
- XmlDataLoader.cs
- CacheSection.cs
- CalloutQueueItem.cs
- EndpointAddress.cs
- XmlWriter.cs
- DynamicPropertyReader.cs
- SchemaAttDef.cs
- UnknownWrapper.cs
- ModelTreeEnumerator.cs
- ApplicationDirectory.cs
- SmtpAuthenticationManager.cs
- SmtpFailedRecipientsException.cs
- DurationConverter.cs
- MemoryMappedFileSecurity.cs
- XmlSubtreeReader.cs
- XmlSchemas.cs
- DataSetFieldSchema.cs
- Padding.cs
- FixedMaxHeap.cs
- SoapEnumAttribute.cs
- SafeNativeMethods.cs
- PartDesigner.cs
- Span.cs
- CqlLexerHelpers.cs
- WinFormsUtils.cs
- CalendarTable.cs
- NativeMethods.cs
- RowUpdatedEventArgs.cs
- XamlTypeWithExplicitNamespace.cs
- RIPEMD160Managed.cs
- IPPacketInformation.cs
- SiteMap.cs
- DbFunctionCommandTree.cs
- RadioButtonStandardAdapter.cs
- GeneratedView.cs
- ListView.cs
- PnrpPermission.cs
- RegistrationServices.cs
- PropertyGridView.cs
- CodeMemberProperty.cs
- XamlFigureLengthSerializer.cs
- BrowserCapabilitiesFactory35.cs
- dataSvcMapFileLoader.cs
- UserControl.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- DocumentViewerConstants.cs
- XmlElementList.cs
- NativeMethodsCLR.cs
- TextSelectionHighlightLayer.cs
- DataSourceSelectArguments.cs
- MenuScrollingVisibilityConverter.cs
- BuildProviderUtils.cs
- AdapterDictionary.cs
- ImageList.cs
- CompilerScopeManager.cs
- xmlglyphRunInfo.cs
- SchemaNamespaceManager.cs
- ReadOnlyNameValueCollection.cs
- DeferredReference.cs
- HeaderCollection.cs