Transaction.SetDistributedTransactionIdentifier Metoda

Definice

Nastaví identifikátor distribuovaných transakcí vygenerovaný jiným povýšením než 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)

Parametry

promotableNotification
IPromotableSinglePhaseNotification

IPromotableSinglePhaseNotification Rozhraní implementované účastníkem.

distributedTransactionIdentifier
Guid

Identifikátor transakce používané správcem distribuovaných transakcí.

Poznámky

Tuto metodu IPromotableSinglePhaseNotification.Promote lze volat pouze úspěšně při zpracování metody. Pokud je tato metoda volána kdykoliv jindy, vyvolá se.TransactionException

Zadaná hodnota parametru promotableNotification musí být stejný objekt, který byl původně zadán pro Transaction.EnlistPromotableSinglePhase vyvolání. Pokud tomu tak není, je InvalidOperationException vyvolán.

Platí pro