TransactionAbortedException Constructors

Definition

Initializes a new instance of the TransactionAbortedException class.

Overloads

TransactionAbortedException()

Initializes a new instance of the TransactionAbortedException class.

TransactionAbortedException(String)

Initializes a new instance of the TransactionAbortedException class with the specified message.

TransactionAbortedException(SerializationInfo, StreamingContext)

Initializes a new instance of the TransactionAbortedException class with the specified serialization and streaming context information.

TransactionAbortedException(String, Exception)

Initializes a new instance of the TransactionAbortedException class with the specified message and inner exception.

TransactionAbortedException()

Initializes a new instance of the TransactionAbortedException class.

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

Applies to

TransactionAbortedException(String)

Initializes a new instance of the TransactionAbortedException class with the specified message.

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)

Parameters

message
String

A String that contains a message that explains why the exception occurred.

Applies to

TransactionAbortedException(SerializationInfo, StreamingContext)

Initializes a new instance of the TransactionAbortedException class with the specified serialization and streaming context information.

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

Parameters

info
SerializationInfo

A SerializationInfo object that describes a failed serialization.

context
StreamingContext

A SerializationInfo object that describes a failed serialization context.

Applies to

TransactionAbortedException(String, Exception)

Initializes a new instance of the TransactionAbortedException class with the specified message and inner exception.

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)

Parameters

message
String

A String that contains a message that explains why the exception occurred.

innerException
Exception

Gets the exception instance that causes the current exception. For more information, see the InnerException property.

Applies to