Transaction.PromoterType 屬性
定義
可唯一識別 byte[]
的格式,其由 Promote 方法在交易升級時傳回。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.Empty
。If 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.PromoterTypeDtc
。If 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
.