Bewerken

Delen via


WindowsFormsSynchronizationContext.Uninstall Method

Definition

Uninstalls the currently installed WindowsFormsSynchronizationContext and replaces it with the previously installed context.

public:
 static void Uninstall();
public static void Uninstall ();
static member Uninstall : unit -> unit
Public Shared Sub Uninstall ()

Remarks

If the previously installed WindowsFormsSynchronizationContext is null, the current context is set to null.

If the currently installed synchronization context is not a WindowsFormsSynchronizationContext, this method does nothing.

Applies to

See also