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
- Set.cs
- CorrelationQueryBehavior.cs
- StringReader.cs
- DelegatingConfigHost.cs
- JsonReaderWriterFactory.cs
- contentDescriptor.cs
- DSASignatureFormatter.cs
- smtppermission.cs
- SecurityChannelFactory.cs
- PointCollection.cs
- Deflater.cs
- ConsumerConnectionPointCollection.cs
- ScriptResourceInfo.cs
- LineBreakRecord.cs
- SqlBulkCopyColumnMapping.cs
- SqlBulkCopyColumnMapping.cs
- FolderBrowserDialog.cs
- MgmtConfigurationRecord.cs
- ValidationSummary.cs
- DocumentViewer.cs
- Rotation3DKeyFrameCollection.cs
- SetterBase.cs
- DirectoryObjectSecurity.cs
- HostnameComparisonMode.cs
- WebPartConnectVerb.cs
- TypeToken.cs
- AddInSegmentDirectoryNotFoundException.cs
- ComplexLine.cs
- PointLight.cs
- HttpCacheParams.cs
- KnownColorTable.cs
- ListViewEditEventArgs.cs
- ShutDownListener.cs
- XmlNodeWriter.cs
- oledbmetadatacolumnnames.cs
- LinkedList.cs
- List.cs
- FileRecordSequence.cs
- SineEase.cs
- SessionState.cs
- RequestCache.cs
- ZoneIdentityPermission.cs
- HotCommands.cs
- MulticastDelegate.cs
- GroupItem.cs
- ReturnValue.cs
- TextChange.cs
- EndpointInstanceProvider.cs
- COAUTHINFO.cs
- StrokeNodeOperations2.cs
- ValidationEventArgs.cs
- AssemblyCollection.cs
- Int32RectConverter.cs
- StringFunctions.cs
- EDesignUtil.cs
- DbConnectionPool.cs
- VirtualPathData.cs
- GeneralTransform3DCollection.cs
- DataKeyArray.cs
- NavigationService.cs
- TimersDescriptionAttribute.cs
- InvokeMethod.cs
- ToolStripDropDownMenu.cs
- ClientSideQueueItem.cs
- WmlCalendarAdapter.cs
- InstanceDataCollectionCollection.cs
- MappingModelBuildProvider.cs
- EdmError.cs
- Msec.cs
- RightsManagementEncryptionTransform.cs
- MergeLocalizationDirectives.cs
- PageContent.cs
- DrawingContextWalker.cs
- ConnectionsZoneAutoFormat.cs
- SQLDateTimeStorage.cs
- AggregateException.cs
- RadioButtonAutomationPeer.cs
- CryptoHandle.cs
- InputScope.cs
- TableTextElementCollectionInternal.cs
- FormattedText.cs
- DriveNotFoundException.cs
- XPathDocument.cs
- EventProviderTraceListener.cs
- DataGridViewButtonColumn.cs
- mansign.cs
- MeasureItemEvent.cs
- XsltCompileContext.cs
- securitycriticaldataClass.cs
- TableLayoutColumnStyleCollection.cs
- DataGridRelationshipRow.cs
- CloseCollectionAsyncResult.cs
- XmlNode.cs
- FileSystemEventArgs.cs
- LogEntryHeaderDeserializer.cs
- TemplateBindingExtension.cs
- CorrelationService.cs
- ObjectListDesigner.cs
- ReflectEventDescriptor.cs
- CodeTypeMemberCollection.cs