TransactionException Constructors

Definition

Initializes a new instance of the TransactionException class.

Overloads

TransactionException()

Initializes a new instance of the TransactionException class.

TransactionException(String)

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

TransactionException(SerializationInfo, StreamingContext)

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

TransactionException(String, Exception)

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

TransactionException()

Initializes a new instance of the TransactionException class.

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

TransactionException(String)

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

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

Parameters

message
String

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

TransactionException(SerializationInfo, StreamingContext)

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

protected:
 TransactionException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TransactionException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Transactions.TransactionException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Transactions.TransactionException
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.

TransactionException(String, Exception)

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

public:
 TransactionException(System::String ^ message, Exception ^ innerException);
public TransactionException (string message, Exception innerException);
new System.Transactions.TransactionException : string * Exception -> System.Transactions.TransactionException
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