Transaction.GetPromotedToken Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the byte[]
returned by the Promote
method when the transaction is promoted.
public:
cli::array <System::Byte> ^ GetPromotedToken();
public byte[] GetPromotedToken ();
member this.GetPromotedToken : unit -> byte[]
Public Function GetPromotedToken () As Byte()
Returns
The byte[]
returned by the Promote
method when the transaction is promoted.
Remarks
This method has the side effect of causing promotion of the transaction if it is not already promoted.
The format of the returned byte[]
is defined by the value of the Transaction.PromoterType
property. If the value of the Transaction.PromoterType
property is TransactionInterop.PromoterTypeDtc
or Guid.Empty
, then the byte[]
returned by this method is an MSDTC transmitter propagation token. Any other value for the Transaction.PromoterType
property specifies a format that is defined by the caller of Transaction.EnlistPromotableSinglePhase
that specified the property type value. In order to interpret the promoted token in this latter case, you will need to consult the documentation for the code that made the EnlistPromotableSinglePhase
call.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기