Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstanceHandleConflictException.cs / 1305376 / InstanceHandleConflictException.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 InstanceHandleConflictException : InstancePersistenceCommandException { public InstanceHandleConflictException() : this(SRCore.InstanceHandleConflictDefault, null) { } public InstanceHandleConflictException(string message) : this(message, null) { } public InstanceHandleConflictException(string message, Exception innerException) : base(message, innerException) { } public InstanceHandleConflictException(XName commandName, Guid instanceId) : this(commandName, instanceId, null) { } public InstanceHandleConflictException(XName commandName, Guid instanceId, Exception innerException) : this(commandName, instanceId, ToMessage(instanceId), innerException) { } public InstanceHandleConflictException(XName commandName, Guid instanceId, string message, Exception innerException) : base(commandName, instanceId, message, innerException) { } [SecurityCritical] protected InstanceHandleConflictException(SerializationInfo info, StreamingContext context) : base(info, context) { } static string ToMessage(Guid instanceId) { if (instanceId != Guid.Empty) { return SRCore.InstanceHandleConflictSpecific(instanceId); } return SRCore.InstanceHandleConflictDefault; } } } // 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 InstanceHandleConflictException : InstancePersistenceCommandException { public InstanceHandleConflictException() : this(SRCore.InstanceHandleConflictDefault, null) { } public InstanceHandleConflictException(string message) : this(message, null) { } public InstanceHandleConflictException(string message, Exception innerException) : base(message, innerException) { } public InstanceHandleConflictException(XName commandName, Guid instanceId) : this(commandName, instanceId, null) { } public InstanceHandleConflictException(XName commandName, Guid instanceId, Exception innerException) : this(commandName, instanceId, ToMessage(instanceId), innerException) { } public InstanceHandleConflictException(XName commandName, Guid instanceId, string message, Exception innerException) : base(commandName, instanceId, message, innerException) { } [SecurityCritical] protected InstanceHandleConflictException(SerializationInfo info, StreamingContext context) : base(info, context) { } static string ToMessage(Guid instanceId) { if (instanceId != Guid.Empty) { return SRCore.InstanceHandleConflictSpecific(instanceId); } return SRCore.InstanceHandleConflictDefault; } } } // 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
- Funcletizer.cs
- RuntimeConfig.cs
- MachineKeySection.cs
- ExtentKey.cs
- PropertyManager.cs
- DocumentApplicationJournalEntry.cs
- DataControlLinkButton.cs
- SubMenuStyleCollection.cs
- Light.cs
- StylusPoint.cs
- DrawingCollection.cs
- PermissionSetEnumerator.cs
- InputManager.cs
- Int32CollectionConverter.cs
- DataGridViewCellEventArgs.cs
- ApplicationInfo.cs
- TemplatedControlDesigner.cs
- EmptyStringExpandableObjectConverter.cs
- TextServicesProperty.cs
- DocumentGrid.cs
- Application.cs
- StrokeNodeOperations2.cs
- CryptoKeySecurity.cs
- ManualResetEventSlim.cs
- SymLanguageType.cs
- _Rfc2616CacheValidators.cs
- HtmlShimManager.cs
- UnionCodeGroup.cs
- PathSegment.cs
- MessageCredentialType.cs
- EmptyReadOnlyDictionaryInternal.cs
- IPAddressCollection.cs
- FlowDocumentFormatter.cs
- KnownTypes.cs
- JournalEntryListConverter.cs
- SafeWaitHandle.cs
- PackageProperties.cs
- SqlNode.cs
- ConfigurationException.cs
- DataGridLinkButton.cs
- SymLanguageType.cs
- SqlMethodCallConverter.cs
- DesignerView.xaml.cs
- SelectionPattern.cs
- BamlLocalizableResourceKey.cs
- WorkflowDesignerColors.cs
- PointCollection.cs
- ResourcePermissionBaseEntry.cs
- NetworkInformationPermission.cs
- WpfPayload.cs
- FormViewInsertedEventArgs.cs
- SQLMembershipProvider.cs
- TrustManagerPromptUI.cs
- WizardPanel.cs
- SafeRightsManagementSessionHandle.cs
- PreservationFileWriter.cs
- TemplatedWizardStep.cs
- BindingOperations.cs
- ResourceCategoryAttribute.cs
- DataListItemEventArgs.cs
- MethodBuilderInstantiation.cs
- AttributedMetaModel.cs
- Visitors.cs
- ETagAttribute.cs
- NativeMethods.cs
- ModuleBuilderData.cs
- AdditionalEntityFunctions.cs
- FlowPosition.cs
- XmlNullResolver.cs
- TextTrailingWordEllipsis.cs
- FunctionDescription.cs
- TrackBar.cs
- DrawingGroup.cs
- XsdDuration.cs
- BroadcastEventHelper.cs
- Int16KeyFrameCollection.cs
- DataGridColumn.cs
- Globals.cs
- SkipQueryOptionExpression.cs
- ProcessStartInfo.cs
- VisemeEventArgs.cs
- StrongNameMembershipCondition.cs
- LayoutManager.cs
- FormsAuthenticationTicket.cs
- MemberAccessException.cs
- XmlComment.cs
- _DomainName.cs
- CodeTypeReferenceExpression.cs
- UrlRoutingModule.cs
- NativeMethods.cs
- MinMaxParagraphWidth.cs
- UIElementParagraph.cs
- SqlStatistics.cs
- XPathDocumentBuilder.cs
- ClientConfigurationHost.cs
- ExpressionEditor.cs
- PtsHelper.cs
- ThreadPool.cs
- ItemMap.cs
- _NativeSSPI.cs