System.Windows.Forms.WindowsFormsSynchronizationContext.Uninstall Method

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

Syntax

public static void Uninstall ()

Remarks

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

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

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0