SubordinateTransaction 类

定义

表示可以委托的一个非根事务。Represents a non-rooted transaction that can be delegated. 此类不能被继承。This class cannot be inherited.

public ref class SubordinateTransaction sealed : System::Transactions::Transaction
public sealed class SubordinateTransaction : System.Transactions.Transaction
[System.Serializable]
public sealed class SubordinateTransaction : System.Transactions.Transaction
type SubordinateTransaction = class
    inherit Transaction
[<System.Serializable>]
type SubordinateTransaction = class
    inherit Transaction
Public NotInheritable Class SubordinateTransaction
Inherits Transaction
继承
SubordinateTransaction
属性

注解

此类派生自 Transaction ,并提供采用接口实现的构造函数 ISimpleTransactionSuperiorThis class derives from Transaction and provides a constructor that takes an implementation of the ISimpleTransactionSuperior interface. 此类型的实例不是根事务,但可以被委派。Instances of this type are not the root transaction but can be delegated.

构造函数

SubordinateTransaction(IsolationLevel, ISimpleTransactionSuperior)

初始化 SubordinateTransaction 类的新实例。Initializes a new instance of the SubordinateTransaction class.

属性

IsolationLevel

获取事务的隔离级别。Gets the isolation level of the transaction.

(继承自 Transaction)
PromoterType

对提升事务时由 Promote 方法返回的 byte [] 的格式进行唯一标识。Uniquely identifies the format of the byte[] returned by the Promote method when the transaction is promoted.

(继承自 Transaction)
TransactionInformation

检索有关某个事务的附加信息。Retrieves additional information about a transaction.

(继承自 Transaction)

方法

BeginCommitInternal(AsyncCallback) (继承自 Transaction)
Clone()

创建事务的克隆。Creates a clone of the transaction.

(继承自 Transaction)
DependentClone(DependentCloneOption)

创建事务的依赖复本。Creates a dependent clone of the transaction.

(继承自 Transaction)
Dispose()

释放由该对象占用的资源。Releases the resources that are held by the object.

(继承自 Transaction)
EndCommitInternal(IAsyncResult) (继承自 Transaction)
EnlistDurable(Guid, IEnlistmentNotification, EnlistmentOptions)

登记支持两阶段提交的持久资源管理器以参与事务。Enlists a durable resource manager that supports two phase commit to participate in a transaction.

(继承自 Transaction)
EnlistDurable(Guid, ISinglePhaseNotification, EnlistmentOptions)

登记支持单阶段提交优化的持久资源管理器以参与事务。Enlists a durable resource manager that supports single phase commit optimization to participate in a transaction.

(继承自 Transaction)
EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification)

对资源管理器进行登记,该资源管理器具有使用可提升的单阶段登记 (PSPE) 的内部事务。Enlists a resource manager that has an internal transaction using a promotable single phase enlistment (PSPE).

(继承自 Transaction)
EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification, Guid)

对资源管理器进行登记,该资源管理器具有使用可提升的单阶段登记 (PSPE) 的内部事务。Enlists a resource manager that has an internal transaction using a promotable single phase enlistment (PSPE).

(继承自 Transaction)
EnlistVolatile(IEnlistmentNotification, EnlistmentOptions)

登记在事务中支持两阶段提交参与的易失性资源管理器。Enlists a volatile resource manager that supports two phase commit to participate in a transaction.

(继承自 Transaction)
EnlistVolatile(ISinglePhaseNotification, EnlistmentOptions)

登记支持单阶段提交优化的可变资源管理器以参与事务。Enlists a volatile resource manager that supports single phase commit optimization to participate in a transaction.

(继承自 Transaction)
Equals(Object)

确定此事务和指定的对象是否相等。Determines whether this transaction and the specified object are equal.

(继承自 Transaction)
GetHashCode()

返回此实例的哈希代码。Returns the hash code for this instance.

(继承自 Transaction)
GetPromotedToken()

获取提升事务时由 Promote 方法返回的 byte []Gets the byte[] returned by the Promote method when the transaction is promoted.

(继承自 Transaction)
GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
PromoteAndEnlistDurable(Guid, IPromotableSinglePhaseNotification, ISinglePhaseNotification, EnlistmentOptions)

提升和登记支持两阶段提交的持久资源管理器以参与事务。Promotes and enlists a durable resource manager that supports two phase commit to participate in a transaction.

(继承自 Transaction)
Rollback()

回滚(中止)事务。Rolls back (aborts) the transaction.

(继承自 Transaction)
Rollback(Exception)

回滚(中止)事务。Rolls back (aborts) the transaction.

(继承自 Transaction)
SetDistributedTransactionIdentifier(IPromotableSinglePhaseNotification, Guid)

设置由非 MSDTC 提升程序生成的分布式事务标识符。Sets the distributed transaction identifier generated by the non-MSDTC promoter.

(继承自 Transaction)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

事件

TransactionCompleted

指示事务已完成。Indicates that the transaction is completed.

(继承自 Transaction)

显式接口实现

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

获取含有序列化此事务所需要的数据的 SerializationInfoGets a SerializationInfo with the data required to serialize this transaction.

(继承自 Transaction)

适用于

线程安全性

此类型是线程安全的。This type is thread safe.