TransactionInDoubtException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 TransactionInDoubtException 类的新实例。
重载
TransactionInDoubtException() |
初始化 TransactionInDoubtException 类的新实例。 |
TransactionInDoubtException(String) |
使用指定的消息初始化 TransactionInDoubtException 类的新实例。 |
TransactionInDoubtException(SerializationInfo, StreamingContext) |
已过时.
用指定的序列化和流上下文信息初始化 TransactionInDoubtException 类的新实例。 |
TransactionInDoubtException(String, Exception) |
使用指定的消息和内部异常初始化 TransactionInDoubtException 类的新实例。 |
TransactionInDoubtException()
- Source:
- TransactionException.cs
- Source:
- TransactionException.cs
- Source:
- TransactionException.cs
初始化 TransactionInDoubtException 类的新实例。
public:
TransactionInDoubtException();
public TransactionInDoubtException ();
Public Sub New ()
适用于
TransactionInDoubtException(String)
- Source:
- TransactionException.cs
- Source:
- TransactionException.cs
- Source:
- TransactionException.cs
使用指定的消息初始化 TransactionInDoubtException 类的新实例。
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)
参数
适用于
TransactionInDoubtException(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.
用指定的序列化和流上下文信息初始化 TransactionInDoubtException 类的新实例。
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)
参数
- info
- SerializationInfo
描述失败的序列化的 SerializationInfo 对象。
- context
- StreamingContext
描述失败的序列化上下文的 SerializationInfo 对象。
- 属性
适用于
TransactionInDoubtException(String, Exception)
- Source:
- TransactionException.cs
- Source:
- TransactionException.cs
- Source:
- TransactionException.cs
使用指定的消息和内部异常初始化 TransactionInDoubtException 类的新实例。
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)
参数
- innerException
- Exception
获取引发当前异常的异常实例。 有关更多信息,请参见 InnerException 属性。