Transaction.PromoterType 属性

定义

对提升事务时由 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

属性值

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

注解

如果事务尚未升级并且尚未具有可提升的单阶段登记,则此属性的值将为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.

适用于