WindowsFormsSynchronizationContext Class

Definition

Provides a synchronization context for the Windows Forms application model.

public ref class WindowsFormsSynchronizationContext sealed : System::Threading::SynchronizationContext, IDisposable
public sealed class WindowsFormsSynchronizationContext : System.Threading.SynchronizationContext, IDisposable
type WindowsFormsSynchronizationContext = class
    inherit SynchronizationContext
    interface IDisposable
Public NotInheritable Class WindowsFormsSynchronizationContext
Inherits SynchronizationContext
Implements IDisposable
Inheritance
WindowsFormsSynchronizationContext
Implements

Constructors

WindowsFormsSynchronizationContext()

Initializes a new instance of the WindowsFormsSynchronizationContext class.

Properties

AutoInstall

Gets or sets a value indicating whether the WindowsFormsSynchronizationContext is installed when a control is created.

Methods

CreateCopy()

Copies the synchronization context.

Dispose()

Releases all resources used by the WindowsFormsSynchronizationContext.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsWaitNotificationRequired()

Determines if wait notification is required.

(Inherited from SynchronizationContext)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OperationCompleted()

When overridden in a derived class, responds to the notification that an operation has completed.

(Inherited from SynchronizationContext)
OperationStarted()

When overridden in a derived class, responds to the notification that an operation has started.

(Inherited from SynchronizationContext)
Post(SendOrPostCallback, Object)

Dispatches an asynchronous message to a synchronization context.

Send(SendOrPostCallback, Object)

Dispatches a synchronous message to a synchronization context.

SetWaitNotificationRequired()

Sets notification that wait notification is required and prepares the callback method so it can be called more reliably when a wait occurs.

(Inherited from SynchronizationContext)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
Uninstall()

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

Wait(IntPtr[], Boolean, Int32)

Waits for any or all the elements in the specified array to receive a signal.

(Inherited from SynchronizationContext)

Applies to

See also