TransactionAbortedException 构造函数

定义

初始化 TransactionAbortedException 类的新实例。

重载

TransactionAbortedException()

初始化 TransactionAbortedException 类的新实例。

TransactionAbortedException(String)

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

TransactionAbortedException(SerializationInfo, StreamingContext)
已过时.

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

TransactionAbortedException(String, Exception)

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

TransactionAbortedException()

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

初始化 TransactionAbortedException 类的新实例。

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

适用于

TransactionAbortedException(String)

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

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

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

参数

message
String

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

适用于

TransactionAbortedException(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.

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

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

参数

info
SerializationInfo

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

context
StreamingContext

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

属性

适用于

TransactionAbortedException(String, Exception)

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

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

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

参数

message
String

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

innerException
Exception

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

适用于