ExecutionContext.SuppressFlow Methode

Definitie

Onderdrukt de stroom van de uitvoeringscontext in asynchrone threads.

public:
 static System::Threading::AsyncFlowControl SuppressFlow();
public static System.Threading.AsyncFlowControl SuppressFlow();
[System.Security.SecurityCritical]
public static System.Threading.AsyncFlowControl SuppressFlow();
static member SuppressFlow : unit -> System.Threading.AsyncFlowControl
[<System.Security.SecurityCritical>]
static member SuppressFlow : unit -> System.Threading.AsyncFlowControl
Public Shared Function SuppressFlow () As AsyncFlowControl

Retouren

Een AsyncFlowControl structuur voor het herstellen van de stroom.

Kenmerken

Uitzonderingen

De contextstroom wordt al onderdrukt.

Opmerkingen

Gebruik deze methode om de stroom van de ExecutionContext huidige thread te onderdrukken.

U moet de Undo methode in de geretourneerde AsyncFlowControl structuur gebruiken om de stroom van de ExecutionContext.

Van toepassing op

Zie ook