Bewerken

Delen via


TransactionInDoubtException Constructors

Definition

Initializes a new instance of the TransactionInDoubtException class.

Overloads

TransactionInDoubtException()

Initializes a new instance of the TransactionInDoubtException class.

TransactionInDoubtException(String)

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

TransactionInDoubtException(SerializationInfo, StreamingContext)
Obsolete.

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

TransactionInDoubtException(String, Exception)

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

TransactionInDoubtException()

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

Initializes a new instance of the TransactionInDoubtException class.

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

Applies to

TransactionInDoubtException(String)

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

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

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)

Parameters

message
String

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

Applies to

TransactionInDoubtException(SerializationInfo, StreamingContext)

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

Caution

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

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

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)

Parameters

info
SerializationInfo

A SerializationInfo object that describes a failed serialization.

context
StreamingContext

A SerializationInfo object that describes a failed serialization context.

Attributes

Applies to

TransactionInDoubtException(String, Exception)

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

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

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)

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