TransactionManagerCommunicationException 构造函数

定义

初始化 TransactionManagerCommunicationException 类的新实例。

重载

TransactionManagerCommunicationException()

初始化 TransactionManagerCommunicationException 类的新实例。

TransactionManagerCommunicationException(String)

使用指定的消息初始化 TransactionManagerCommunicationException 类的新实例。

TransactionManagerCommunicationException(SerializationInfo, StreamingContext)
已过时.

用指定的序列化和流上下文信息初始化 TransactionManagerCommunicationException 类的新实例。

TransactionManagerCommunicationException(String, Exception)

使用指定的消息和内部异常初始化 TransactionManagerCommunicationException 类的新实例。

TransactionManagerCommunicationException()

Source:
TransactionException.cs
Source:
TransactionException.cs
Source:
TransactionException.cs

初始化 TransactionManagerCommunicationException 类的新实例。

public:
 TransactionManagerCommunicationException();
public TransactionManagerCommunicationException ();
Public Sub New ()

适用于

TransactionManagerCommunicationException(String)

Source:
TransactionException.cs
Source:
TransactionException.cs
Source:
TransactionException.cs

使用指定的消息初始化 TransactionManagerCommunicationException 类的新实例。

public:
 TransactionManagerCommunicationException(System::String ^ message);
public TransactionManagerCommunicationException (string? message);
public TransactionManagerCommunicationException (string message);
new System.Transactions.TransactionManagerCommunicationException : string -> System.Transactions.TransactionManagerCommunicationException
Public Sub New (message As String)

参数

message
String

包含说明异常发生原因的消息的一个 String

适用于

TransactionManagerCommunicationException(SerializationInfo, StreamingContext)

Source:
TransactionException.cs
Source:
TransactionException.cs
Source:
TransactionException.cs

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

用指定的序列化和流上下文信息初始化 TransactionManagerCommunicationException 类的新实例。

protected:
 TransactionManagerCommunicationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TransactionManagerCommunicationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected TransactionManagerCommunicationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Transactions.TransactionManagerCommunicationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Transactions.TransactionManagerCommunicationException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Transactions.TransactionManagerCommunicationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Transactions.TransactionManagerCommunicationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

描述失败的序列化的 SerializationInfo 对象。

context
StreamingContext

描述失败的序列化上下文的 SerializationInfo 对象。

属性

适用于

TransactionManagerCommunicationException(String, Exception)

Source:
TransactionException.cs
Source:
TransactionException.cs
Source:
TransactionException.cs

使用指定的消息和内部异常初始化 TransactionManagerCommunicationException 类的新实例。

public:
 TransactionManagerCommunicationException(System::String ^ message, Exception ^ innerException);
public TransactionManagerCommunicationException (string? message, Exception? innerException);
public TransactionManagerCommunicationException (string message, Exception innerException);
new System.Transactions.TransactionManagerCommunicationException : string * Exception -> System.Transactions.TransactionManagerCommunicationException
Public Sub New (message As String, innerException As Exception)

参数

message
String

包含说明异常发生原因的消息的一个 String

innerException
Exception

获取引发当前异常的异常实例。 有关更多信息,请参见 InnerException 属性。

适用于