共用方式為


TransactionInDoubtException 建構函式

定義

初始化 TransactionInDoubtException 類別的新執行個體。

多載

TransactionInDoubtException()

初始化 TransactionInDoubtException 類別的新執行個體。

TransactionInDoubtException(String)

使用指定的訊息初始化 TransactionInDoubtException 類別的新執行個體。

TransactionInDoubtException(SerializationInfo, StreamingContext)
已淘汰.

使用指定的序列化和資料流內容資訊,初始化 TransactionInDoubtException 類別的新執行個體。

TransactionInDoubtException(String, Exception)

使用指定的訊息和內部例外狀況初始化 TransactionInDoubtException 類別的新執行個體。

TransactionInDoubtException()

來源:
TransactionException.cs
來源:
TransactionException.cs
來源:
TransactionException.cs

初始化 TransactionInDoubtException 類別的新執行個體。

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

適用於

TransactionInDoubtException(String)

來源:
TransactionException.cs
來源:
TransactionException.cs
來源:
TransactionException.cs

使用指定的訊息初始化 TransactionInDoubtException 類別的新執行個體。

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

參數

message
String

String,其中包含說明例外狀況發生原因的訊息。

適用於

TransactionInDoubtException(SerializationInfo, StreamingContext)

來源:
TransactionException.cs
來源:
TransactionException.cs
來源:
TransactionException.cs

警告

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

使用指定的序列化和資料流內容資訊,初始化 TransactionInDoubtException 類別的新執行個體。

protected:
 TransactionInDoubtException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TransactionInDoubtException (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 TransactionInDoubtException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Transactions.TransactionInDoubtException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Transactions.TransactionInDoubtException
[<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.TransactionInDoubtException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Transactions.TransactionInDoubtException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

SerializationInfo 物件,描述已失敗的序列化作業。

context
StreamingContext

SerializationInfo 物件,描述已失敗的序列化內容。

屬性

適用於

TransactionInDoubtException(String, Exception)

來源:
TransactionException.cs
來源:
TransactionException.cs
來源:
TransactionException.cs

使用指定的訊息和內部例外狀況初始化 TransactionInDoubtException 類別的新執行個體。

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

參數

message
String

String,其中包含說明例外狀況發生原因的訊息。

innerException
Exception

取得造成目前例外狀況的例外狀況執行個體。 如需詳細資訊,請參閱 InnerException 屬性 (Property)。

適用於