TransactionPromotionException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 TransactionPromotionException 類別的新執行個體。
多載
TransactionPromotionException() |
初始化 TransactionPromotionException 類別的新執行個體。 |
TransactionPromotionException(String) |
使用指定的訊息初始化 TransactionPromotionException 類別的新執行個體。 |
TransactionPromotionException(SerializationInfo, StreamingContext) |
已淘汰.
使用指定的序列化和資料流內容資訊,初始化 TransactionPromotionException 類別的新執行個體。 |
TransactionPromotionException(String, Exception) |
使用指定的訊息和內部例外狀況初始化 TransactionPromotionException 類別的新執行個體。 |
TransactionPromotionException()
初始化 TransactionPromotionException 類別的新執行個體。
public:
TransactionPromotionException();
public TransactionPromotionException ();
Public Sub New ()
適用於
TransactionPromotionException(String)
使用指定的訊息初始化 TransactionPromotionException 類別的新執行個體。
public:
TransactionPromotionException(System::String ^ message);
public TransactionPromotionException (string? message);
public TransactionPromotionException (string message);
new System.Transactions.TransactionPromotionException : string -> System.Transactions.TransactionPromotionException
Public Sub New (message As String)
參數
適用於
TransactionPromotionException(SerializationInfo, StreamingContext)
警告
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
使用指定的序列化和資料流內容資訊,初始化 TransactionPromotionException 類別的新執行個體。
protected:
TransactionPromotionException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TransactionPromotionException (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 TransactionPromotionException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Transactions.TransactionPromotionException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Transactions.TransactionPromotionException
[<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.TransactionPromotionException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Transactions.TransactionPromotionException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
參數
- info
- SerializationInfo
SerializationInfo 物件,描述已失敗的序列化作業。
- context
- StreamingContext
SerializationInfo 物件,描述已失敗的序列化內容。
- 屬性
適用於
TransactionPromotionException(String, Exception)
使用指定的訊息和內部例外狀況初始化 TransactionPromotionException 類別的新執行個體。
public:
TransactionPromotionException(System::String ^ message, Exception ^ innerException);
public TransactionPromotionException (string? message, Exception? innerException);
public TransactionPromotionException (string message, Exception innerException);
new System.Transactions.TransactionPromotionException : string * Exception -> System.Transactions.TransactionPromotionException
Public Sub New (message As String, innerException As Exception)
參數
- innerException
- Exception
取得造成目前例外狀況的例外狀況執行個體。 如需詳細資訊,請參閱 InnerException 屬性 (Property)。