Transaction.SetDistributedTransactionIdentifier 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.
Sets the distributed transaction identifier generated by the non-MSDTC promoter.
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)
Parameters
- promotableNotification
- IPromotableSinglePhaseNotification
A IPromotableSinglePhaseNotification interface implemented by the participant.
- distributedTransactionIdentifier
- Guid
The identifier for the transaction used by the distributed transaction manager.
Remarks
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.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示