Transaction.SetDistributedTransactionIdentifier 메서드

정의

비MSDTC 프로모터를 통해 생성된 분산 트랜잭션 식별자를 설정합니다.

public:
 void SetDistributedTransactionIdentifier(System::Transactions::IPromotableSinglePhaseNotification ^ promotableNotification, Guid distributedTransactionIdentifier);
public void SetDistributedTransactionIdentifier (System.Transactions.IPromotableSinglePhaseNotification promotableNotification, Guid distributedTransactionIdentifier);
member this.SetDistributedTransactionIdentifier : System.Transactions.IPromotableSinglePhaseNotification * Guid -> unit
Public Sub SetDistributedTransactionIdentifier (promotableNotification As IPromotableSinglePhaseNotification, distributedTransactionIdentifier As Guid)

매개 변수

promotableNotification
IPromotableSinglePhaseNotification

참가자가 구현한 IPromotableSinglePhaseNotification 인터페이스입니다.

distributedTransactionIdentifier
Guid

분산 트랜잭션 관리자에서 사용하는 트랜잭션의 식별자입니다.

설명

이 메서드는 메서드가 처리되는 동안에 IPromotableSinglePhaseNotification.Promote 만 성공적으로 호출할 수 있습니다. 이 메서드가 다른 시간에 호출되면 throw TransactionException 됩니다.

매개 변수의 promotableNotification 지정된 값은 원래 호출에 지정된 Transaction.EnlistPromotableSinglePhase 개체와 동일해야 합니다. 그렇지 않으면 throw InvalidOperationException 됩니다.

적용 대상