Transaction::SetDistributedTransactionIdentifier Method (IPromotableSinglePhaseNotification^, Guid)
Sets the distributed transaction identifier generated by the non-MSDTC promoter.
Assembly: System.Transactions (in System.Transactions.dll)
public: [PermissionSetAttribute(SecurityAction::LinkDemand, Name = "FullTrust")] void SetDistributedTransactionIdentifier( IPromotableSinglePhaseNotification^ promotableNotification, Guid distributedTransactionIdentifier )
Parameters
- promotableNotification
-
Type:
System.Transactions::IPromotableSinglePhaseNotification^
A IPromotableSinglePhaseNotification interface implemented by the participant.
- distributedTransactionIdentifier
-
Type:
System::Guid
The identifier for the transaction used by the distributed transaction manager.
This method can only be called successfully while the IPromotableSinglePhaseNotification.Promote method is being processed. If this method is called at any other time, a TransactionException is thrown.
The specified value of the promotableNotification parameter must be the same object that was originally specified to the Transaction.EnlistPromotableSinglePhase invocation. If this is not the case, then an InvalidOperationException is thrown.
.NET Framework
Available since 4.6.1
Available since 4.6.1
Show: