WindowsFormsSynchronizationContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Implements
Constructors
| Name | Description |
|---|---|
| WindowsFormsSynchronizationContext() |
Initializes a new instance of the WindowsFormsSynchronizationContext class. |
Properties
| Name | Description |
|---|---|
| AutoInstall |
Gets or sets a value indicating whether the WindowsFormsSynchronizationContext is installed when a control is created. |
Methods
| Name | Description |
|---|---|
| CreateCopy() |
Copies the synchronization context. |
| Dispose() |
Releases all resources used by the WindowsFormsSynchronizationContext. |
| Post(SendOrPostCallback, Object) |
Dispatches an asynchronous message to a synchronization context. |
| Send(SendOrPostCallback, Object) |
Dispatches a synchronous message to a synchronization context. |
| Uninstall() |
Uninstalls the currently installed WindowsFormsSynchronizationContext and replaces it with the previously installed context. |