Transaction.EnlistPromotableSinglePhase メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
昇格可能な単一フェーズの参加リスト (PSPE) を使用して、内部トランザクションを持つリソース マネージャーを参加させます。
オーバーロード
EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification) |
昇格可能な単一フェーズの参加リスト (PSPE) を使用して、内部トランザクションを持つリソース マネージャーを参加させます。 |
EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification, Guid) |
昇格可能な単一フェーズの参加リスト (PSPE) を使用して、内部トランザクションを持つリソース マネージャーを参加させます。 |
EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification)
- ソース:
- Transaction.cs
- ソース:
- Transaction.cs
- ソース:
- Transaction.cs
昇格可能な単一フェーズの参加リスト (PSPE) を使用して、内部トランザクションを持つリソース マネージャーを参加させます。
public:
bool EnlistPromotableSinglePhase(System::Transactions::IPromotableSinglePhaseNotification ^ promotableSinglePhaseNotification);
public bool EnlistPromotableSinglePhase (System.Transactions.IPromotableSinglePhaseNotification promotableSinglePhaseNotification);
member this.EnlistPromotableSinglePhase : System.Transactions.IPromotableSinglePhaseNotification -> bool
Public Function EnlistPromotableSinglePhase (promotableSinglePhaseNotification As IPromotableSinglePhaseNotification) As Boolean
パラメーター
- promotableSinglePhaseNotification
- IPromotableSinglePhaseNotification
参加者によって実装された IPromotableSinglePhaseNotification インターフェイス。
戻り値
参加リストを記述する SinglePhaseEnlistment インターフェイスの実装。
注釈
トランザクション内の参加は揮発性です。つまり、参加者の失敗は生き残りません。 さらに、この方法ではトランザクション マネージャーに制御のエスカレートのみを提案しますが、エスカレーション自体は保証されません。 エスカレーションが失敗した場合、ユーザーには通知されず、トランザクションがロールバックされます。
パラメーター promotableSinglePhaseNotification
は、リソース マネージャーの内部トランザクションをコミットしようとした結果をトランザクション マネージャーに通信するために使用されます。 不整合なデータが報告されると、トランザクション・マネージャーは例外をスローします。 結果が InDoubt 報告された場合、トランザクション マネージャーは独自の内部参加リストで結果通知を検索し、報告された応答を無視します。
トランザクションの参加とエスカレーションの詳細については、「 トランザクション管理のエスカレーション」を参照してください。 PSPE の詳細については、「 単一フェーズ コミットを使用した最適化」および「昇格可能な単一フェーズ通知」を参照してください。
適用対象
EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification, Guid)
- ソース:
- Transaction.cs
- ソース:
- Transaction.cs
- ソース:
- Transaction.cs
昇格可能な単一フェーズの参加リスト (PSPE) を使用して、内部トランザクションを持つリソース マネージャーを参加させます。
public:
bool EnlistPromotableSinglePhase(System::Transactions::IPromotableSinglePhaseNotification ^ promotableSinglePhaseNotification, Guid promoterType);
public bool EnlistPromotableSinglePhase (System.Transactions.IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Guid promoterType);
member this.EnlistPromotableSinglePhase : System.Transactions.IPromotableSinglePhaseNotification * Guid -> bool
Public Function EnlistPromotableSinglePhase (promotableSinglePhaseNotification As IPromotableSinglePhaseNotification, promoterType As Guid) As Boolean
パラメーター
- promotableSinglePhaseNotification
- IPromotableSinglePhaseNotification
参加者によって実装された IPromotableSinglePhaseNotification インターフェイス。
- promoterType
- Guid
分散トランザクション プロセッサの種類。
戻り値
参加リストを記述する SinglePhaseEnlistment インターフェイスの実装。
注釈
パラメーターに指定されたpromoterType
値が の場合、トランザクションはTransactionInterop.PromoterTypeDtc
MSDTC byte[]
によって昇格され、メソッドからIPromotableSinglePhaseNotification.Promote
返されるは MSDTC トランザクション伝達トークンである必要があります。
パラメーターに指定された promoterType
値が でないTransactionInterop.PromoterTypeDTC
場合、トランザクションは MSDTC ではなく、呼び出し元の の実装 IPromotableSinglePhaseNotification
によって昇格されます。 この呼び出しが成功した場合は、 を返す一連の後続の操作がトランザクションに対して TransactionPromotionException
行われます。 これらの操作は次のとおりです。
Transaction.EnlistDurable
TransactionInterop.GetDtcTransaction
TransactionInterop.GetExportCookie
TransactionInterop.GetTransmitterPropagationToken
Transaction オブジェクトのシリアル化
適用対象
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示