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
- BaseCollection.cs
- CatalogZone.cs
- EnumUnknown.cs
- BooleanFunctions.cs
- COM2TypeInfoProcessor.cs
- PropertyValueChangedEvent.cs
- FilterFactory.cs
- DataListCommandEventArgs.cs
- MailSettingsSection.cs
- input.cs
- SRGSCompiler.cs
- XmlSchemaSubstitutionGroup.cs
- DelayedRegex.cs
- TrustLevelCollection.cs
- EventPropertyMap.cs
- LockCookie.cs
- Documentation.cs
- WinCategoryAttribute.cs
- _LocalDataStoreMgr.cs
- PageBuildProvider.cs
- ComponentChangingEvent.cs
- SignatureDescription.cs
- AsymmetricKeyExchangeDeformatter.cs
- EncryptedHeader.cs
- ItemsPanelTemplate.cs
- SafeLibraryHandle.cs
- CardSpaceException.cs
- Matrix3DValueSerializer.cs
- ViewSimplifier.cs
- FileLoadException.cs
- QueryOutputWriter.cs
- PropertyGridCommands.cs
- ScrollBarRenderer.cs
- IERequestCache.cs
- DesignerDataSourceView.cs
- WebPartEditorApplyVerb.cs
- RemotingSurrogateSelector.cs
- InvalidFilterCriteriaException.cs
- AssemblyEvidenceFactory.cs
- XPathNodeIterator.cs
- SoapObjectReader.cs
- MenuItem.cs
- ComNativeDescriptor.cs
- pingexception.cs
- ToolStripDropDownButton.cs
- QueryTreeBuilder.cs
- oledbmetadatacollectionnames.cs
- MutexSecurity.cs
- OrthographicCamera.cs
- AutomationPeer.cs
- StylusButton.cs
- DefaultEventAttribute.cs
- NetStream.cs
- RectAnimation.cs
- SemaphoreFullException.cs
- MemoryStream.cs
- SetState.cs
- LinkButton.cs
- NotifyCollectionChangedEventArgs.cs
- NullableIntAverageAggregationOperator.cs
- SoapMessage.cs
- TransformGroup.cs
- DetailsViewUpdatedEventArgs.cs
- WebDisplayNameAttribute.cs
- VirtualizedItemPattern.cs
- RuleRefElement.cs
- WebPartZoneBase.cs
- AssemblyBuilder.cs
- CollectionEditorDialog.cs
- PreloadedPackages.cs
- ProxySimple.cs
- FileDialogPermission.cs
- HitTestParameters.cs
- SchemaImporterExtensionElementCollection.cs
- ExpressionPrinter.cs
- Zone.cs
- EntityProviderFactory.cs
- ToolStripPanelRenderEventArgs.cs
- SharedConnectionInfo.cs
- ValueSerializerAttribute.cs
- FormsAuthenticationTicket.cs
- TextPenaltyModule.cs
- MimeParameter.cs
- documentsequencetextpointer.cs
- EntityDataSourceMemberPath.cs
- SqlGenericUtil.cs
- TypeValidationEventArgs.cs
- XPathAncestorIterator.cs
- CollectionChangeEventArgs.cs
- SingleSelectRootGridEntry.cs
- CodeTypeConstructor.cs
- InsufficientExecutionStackException.cs
- CodeExporter.cs
- QilScopedVisitor.cs
- StyleCollectionEditor.cs
- TypePropertyEditor.cs
- XmlSchemaException.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- NumberFormatInfo.cs
- UIElementHelper.cs