ExecutionContext.RestoreFlow 方法
定义
恢复执行上下文在异步线程之间的流动。Restores the flow of the execution context across asynchronous threads.
public:
static void RestoreFlow();
public static void RestoreFlow ();
static member RestoreFlow : unit -> unit
Public Shared Sub RestoreFlow ()
例外
上下文流尚未取消,无法还原。The context flow cannot be restored because it is not being suppressed.
注解
RestoreFlow 反转先前方法调用的效果 SuppressFlow 。RestoreFlow reverses the effect of a prior SuppressFlow method call.
此方法由 Undo 方法返回的结构的方法调用 AsyncFlowControl SuppressFlow 。This method is called by the Undo method of the AsyncFlowControl structure returned by the SuppressFlow method. 应使用 Undo 方法还原执行上下文的流,而不是 RestoreFlow 方法。You should use the Undo method to restore the flow of the execution context, not the RestoreFlow method.