AsyncFlowControl.Undo 方法

定義

還原執行內容在執行緒之間的流量。Restores the flow of the execution context between threads.

public:
 void Undo();
public void Undo ();
member this.Undo : unit -> unit
Public Sub Undo ()

例外狀況

AsyncFlowControl 結構不是在建立此結構的執行緒上使用。The AsyncFlowControl structure is not used on the thread where it was created.

-或--or- AsyncFlowControl 結構已經用來呼叫 Dispose()Undo()The AsyncFlowControl structure has already been used to call Dispose() or Undo().

備註

ExecutionContext.SuppressFlow 方法會傳回用來還原流程的 AsyncFlowControl 結構。The ExecutionContext.SuppressFlow method returns an AsyncFlowControl structure that is used to restore the flow.

只有在其相關聯的 SuppressFlow 方法所傳回的 AsyncFlowControl 結構上,才必須呼叫 Undo 方法。The Undo method must be called only on the AsyncFlowControl structure returned by its associated SuppressFlow method.

適用於