共用方式為


ITransaction.Abort(BOID, Int32, Int32) 方法

定義

中止交易。

public:
 void Abort(System::EnterpriseServices::BOID % pboidReason, int fRetaining, int fAsync);
public void Abort (ref System.EnterpriseServices.BOID pboidReason, int fRetaining, int fAsync);
abstract member Abort : BOID * int * int -> unit
Public Sub Abort (ByRef pboidReason As BOID, fRetaining As Integer, fAsync As Integer)

參數

pboidReason
BOID

選擇性 BOID,指出交易為何將要被中止。 這個參數可以為 null,指出沒有提供中止的理由。

fRetaining
Int32

必須是 false

fAsync
Int32

fAsynctrue 時,會執行非同步 (Asynchronous) 中止,並且呼叫端必須使用 ITransactionOutcomeEvents 來得知交易的結果。

適用於