Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstanceCompleteException.cs / 1305376 / InstanceCompleteException.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.DurableInstancing { using System; using System.Runtime.Serialization; using System.Security; using System.Xml.Linq; [Serializable] public class InstanceCompleteException : InstancePersistenceCommandException { public InstanceCompleteException() : this(SRCore.InstanceCompleteDefault, null) { } public InstanceCompleteException(string message) : this(message, null) { } public InstanceCompleteException(string message, Exception innerException) : base(message, innerException) { } public InstanceCompleteException(XName commandName, Guid instanceId) : this(commandName, instanceId, null) { } public InstanceCompleteException(XName commandName, Guid instanceId, Exception innerException) : this(commandName, instanceId, ToMessage(instanceId), innerException) { } public InstanceCompleteException(XName commandName, Guid instanceId, string message, Exception innerException) : base(commandName, instanceId, message, innerException) { } [SecurityCritical] protected InstanceCompleteException(SerializationInfo info, StreamingContext context) : base(info, context) { } static string ToMessage(Guid instanceId) { if (instanceId != Guid.Empty) { return SRCore.InstanceCompleteSpecific(instanceId); } return SRCore.InstanceCompleteDefault; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.DurableInstancing { using System; using System.Runtime.Serialization; using System.Security; using System.Xml.Linq; [Serializable] public class InstanceCompleteException : InstancePersistenceCommandException { public InstanceCompleteException() : this(SRCore.InstanceCompleteDefault, null) { } public InstanceCompleteException(string message) : this(message, null) { } public InstanceCompleteException(string message, Exception innerException) : base(message, innerException) { } public InstanceCompleteException(XName commandName, Guid instanceId) : this(commandName, instanceId, null) { } public InstanceCompleteException(XName commandName, Guid instanceId, Exception innerException) : this(commandName, instanceId, ToMessage(instanceId), innerException) { } public InstanceCompleteException(XName commandName, Guid instanceId, string message, Exception innerException) : base(commandName, instanceId, message, innerException) { } [SecurityCritical] protected InstanceCompleteException(SerializationInfo info, StreamingContext context) : base(info, context) { } static string ToMessage(Guid instanceId) { if (instanceId != Guid.Empty) { return SRCore.InstanceCompleteSpecific(instanceId); } return SRCore.InstanceCompleteDefault; } } } // 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
- MissingMemberException.cs
- PagedDataSource.cs
- ThreadAttributes.cs
- SqlTypesSchemaImporter.cs
- WebUtil.cs
- EdmItemCollection.cs
- EntitySqlQueryState.cs
- EmptyReadOnlyDictionaryInternal.cs
- Zone.cs
- ModelUtilities.cs
- JoinSymbol.cs
- UrlUtility.cs
- TranslateTransform.cs
- TemplatedWizardStep.cs
- StructuralType.cs
- _OSSOCK.cs
- ScriptControlManager.cs
- VirtualizedCellInfoCollection.cs
- RtType.cs
- SatelliteContractVersionAttribute.cs
- PDBReader.cs
- TranslateTransform3D.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- LocatorPartList.cs
- MenuDesigner.cs
- StylusPointPropertyInfo.cs
- PrefixQName.cs
- QilIterator.cs
- FixUpCollection.cs
- ExceptionTranslationTable.cs
- OneWayElement.cs
- Parallel.cs
- XmlMapping.cs
- FtpCachePolicyElement.cs
- CompositeCollectionView.cs
- SqlDataSourceSummaryPanel.cs
- RelationshipNavigation.cs
- RedirectionProxy.cs
- HttpRuntime.cs
- Size.cs
- FontStyleConverter.cs
- XmlSchemaImporter.cs
- XmlStrings.cs
- MD5.cs
- Control.cs
- StrongNameIdentityPermission.cs
- TargetPerspective.cs
- ComponentChangingEvent.cs
- X509Utils.cs
- SiteOfOriginPart.cs
- TextViewBase.cs
- DataConnectionHelper.cs
- AspNetPartialTrustHelpers.cs
- BamlTreeMap.cs
- JapaneseCalendar.cs
- PreviewPageInfo.cs
- HttpWriter.cs
- TrustSection.cs
- Line.cs
- TemplateBaseAction.cs
- ItemCollection.cs
- CollectionEditor.cs
- WriteableOnDemandPackagePart.cs
- GenericTypeParameterBuilder.cs
- wgx_sdk_version.cs
- MarkupProperty.cs
- NativeMethods.cs
- MenuItemBindingCollection.cs
- BooleanAnimationUsingKeyFrames.cs
- RtfFormatStack.cs
- LocationEnvironment.cs
- UniqueIdentifierService.cs
- WindowsScrollBarBits.cs
- HTTPNotFoundHandler.cs
- WebDescriptionAttribute.cs
- TemplateControlBuildProvider.cs
- CqlWriter.cs
- FlowDocumentView.cs
- DecimalConstantAttribute.cs
- Token.cs
- WebPartZoneBase.cs
- TypedReference.cs
- DataListCommandEventArgs.cs
- Matrix3D.cs
- ObjectDataSourceView.cs
- XXXOnTypeBuilderInstantiation.cs
- DefaultEvaluationContext.cs
- PolicyLevel.cs
- RuleConditionDialog.cs
- IfAction.cs
- PreProcessor.cs
- RotateTransform3D.cs
- FilteredReadOnlyMetadataCollection.cs
- CodeTypeConstructor.cs
- MetadataArtifactLoaderCompositeResource.cs
- SafeIUnknown.cs
- EntityDataSourceConfigureObjectContext.cs
- Grant.cs
- RequestQueue.cs
- CounterCreationDataCollection.cs