WindowsFormsSynchronizationContext WindowsFormsSynchronizationContext WindowsFormsSynchronizationContext WindowsFormsSynchronizationContext Class

定義

提供 Windows Form 應用程式模型的同步處理內容。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
繼承
WindowsFormsSynchronizationContextWindowsFormsSynchronizationContextWindowsFormsSynchronizationContextWindowsFormsSynchronizationContext
實作

建構函式

WindowsFormsSynchronizationContext() WindowsFormsSynchronizationContext() WindowsFormsSynchronizationContext() WindowsFormsSynchronizationContext()

初始化 WindowsFormsSynchronizationContext 類別的新執行個體。Initializes a new instance of the WindowsFormsSynchronizationContext class.

屬性

AutoInstall AutoInstall AutoInstall AutoInstall

取得或設定值,指出建立控制項時是否已安裝 WindowsFormsSynchronizationContextGets or sets a value indicating whether the WindowsFormsSynchronizationContext is installed when a control is created.

方法

CreateCopy() CreateCopy() CreateCopy() CreateCopy()

複製同步處理內容。Copies the synchronization context.

Dispose() Dispose() Dispose() Dispose()

釋放 WindowsFormsSynchronizationContext 所使用的所有資源。Releases all resources used by the WindowsFormsSynchronizationContext.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
IsWaitNotificationRequired() IsWaitNotificationRequired() IsWaitNotificationRequired() IsWaitNotificationRequired()

判斷是否需要等候告知。Determines if wait notification is required.

(Inherited from SynchronizationContext)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
OperationCompleted() OperationCompleted() OperationCompleted() OperationCompleted()

在衍生類別中覆寫時,會回應作業已經完成的通知。When overridden in a derived class, responds to the notification that an operation has completed.

(Inherited from SynchronizationContext)
OperationStarted() OperationStarted() OperationStarted() OperationStarted()

在衍生類別中覆寫時,會回應作業已經啟動的通知。When overridden in a derived class, responds to the notification that an operation has started.

(Inherited from SynchronizationContext)
Post(SendOrPostCallback, Object) Post(SendOrPostCallback, Object) Post(SendOrPostCallback, Object) Post(SendOrPostCallback, Object)

將非同步訊息分派給同步處理內容。Dispatches an asynchronous message to a synchronization context.

Send(SendOrPostCallback, Object) Send(SendOrPostCallback, Object) Send(SendOrPostCallback, Object) Send(SendOrPostCallback, Object)

將同步訊息分派給同步處理內容。Dispatches a synchronous message to a synchronization context

SetWaitNotificationRequired() SetWaitNotificationRequired() SetWaitNotificationRequired() SetWaitNotificationRequired()

設定告知,表示需要等候告知,並準備回呼 (Callback) 方法,以便在發生等候狀況時,可以順利呼叫該方法。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() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
Uninstall() Uninstall() Uninstall() Uninstall()

解除安裝目前安裝的 WindowsFormsSynchronizationContext,並以之前安裝的內容取代它。Uninstalls the currently installed WindowsFormsSynchronizationContext and replaces it with the previously installed context.

Wait(IntPtr[], Boolean, Int32) Wait(IntPtr[], Boolean, Int32) Wait(IntPtr[], Boolean, Int32) Wait(IntPtr[], Boolean, Int32)

等候指定陣列中的任何元素或所有元素接收信號。Waits for any or all the elements in the specified array to receive a signal.

(Inherited from SynchronizationContext)

適用於

另請參閱