SecurityContext.RestoreFlow 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
恢復非同步執行緒間的安全上下文流動。
public:
static void RestoreFlow();
public static void RestoreFlow();
static member RestoreFlow : unit -> unit
Public Shared Sub RestoreFlow ()
例外狀況
安全上下文為 null 或 空字串。
.NET 5+(含 .NET 核心):所有版本皆適用。
備註
方法呼叫RestoreFlow此AsyncFlowControl.Undo方法以反轉先前SuppressFlow方法呼叫的效果。