TransactionInformation 类

定义

提供关于事务的附加信息。Provides additional information regarding a transaction.

public ref class TransactionInformation
public class TransactionInformation
type TransactionInformation = class
Public Class TransactionInformation
继承
TransactionInformation

注解

您可以通过访问 Transaction 类的 TransactionInformation 属性来查询有关事务的相关信息。You can query relevant information about a transaction by accessing the TransactionInformation property of the Transaction class. 通过这种方式,可以通过执行类似 Transaction.Current.TransactionInformation.Status的调用来检索任何事务对象的状态,包括当前环境事务。In this way, you can retrieve the status of any transaction object, including the current ambient transaction, by doing a call like Transaction.Current.TransactionInformation.Status.

属性

CreationTime

获取事务的创建时间。Gets the creation time of the transaction.

DistributedIdentifier

获取升级的事务的唯一标识符。Gets a unique identifier of the escalated transaction.

LocalIdentifier

获取事务的唯一标识符。Gets a unique identifier of the transaction.

Status

获取事务的状态。Gets the status of the transaction.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于