Transaction.PromoterType Property

Definition

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

public:
 property Guid PromoterType { Guid get(); };
public Guid PromoterType { get; }
member this.PromoterType : Guid
Public ReadOnly Property PromoterType As Guid

Property Value

Guid

一个 guid,用于唯一标识升级方法在事务升级时返回的byte []的格式。A guid that uniquely identifies the format of the byte[] returned by the Promote method when the transaction is promoted.

Remarks

如果尚未升级事务,并且尚未获得可提升的单阶段登记,则此属性的值将 Guid.EmptyIf the transaction has not yet been promoted and does not yet have a promotable single phase enlistment, the value of this property will be Guid.Empty. 如果事务已或将升级到 MSDTC,则此属性的值将 TransactionInterop.PromoterTypeDtcIf the transaction has been or will be promoted to MSDTC, then the value of this property will be TransactionInterop.PromoterTypeDtc. 如果事务已或将由非 MSDTC 提升程序升级,则此属性的值将为对 Transaction.EnlistPromotableSinglePhase的之前调用指定的值。If the transaction has been or will be promoted by a non-MSDTC promoter, the value of this property will be the value specified to an earlier call to Transaction.EnlistPromotableSinglePhase.

Applies to