Share via


PersistenceIOParticipant.Abort 方法

定義

中止暫止的 IO (載入或儲存) 作業。

protected:
 abstract void Abort();
protected abstract void Abort ();
abstract member Abort : unit -> unit
Protected MustOverride Sub Abort ()

備註

若衍生類別會覆寫 BeginOnSave 或 BeginOnLoad,且不一定會立刻完成,則必須覆寫中止。 如果叫用中止,則必須取消所有暫止中的 IO 作業。 如果以這種方式取消作業,對應的 End 方法應會擲回 OperationCanceledException。

適用於