Peer.SynchronizingObject Peer.SynchronizingObject Peer.SynchronizingObject Peer.SynchronizingObject Property

定義

當屬性值設定後,因非同步作業而未引發的所有事件都會有建立該特定 SynchronizingObject 之執行緒上回呼的相關事件處理常式。When this property value is set, all events not fired as the result of an asynchronous operation will have the associated event handlers called back on the thread that created the specific SynchronizingObject.

public:
 property System::ComponentModel::ISynchronizeInvoke ^ SynchronizingObject { System::ComponentModel::ISynchronizeInvoke ^ get(); void set(System::ComponentModel::ISynchronizeInvoke ^ value); };
[System.ComponentModel.Browsable(false)]
public System.ComponentModel.ISynchronizeInvoke SynchronizingObject { get; set; }
member this.SynchronizingObject : System.ComponentModel.ISynchronizeInvoke with get, set
Public Property SynchronizingObject As ISynchronizeInvoke

屬性值

實作 ISynchronizeInvoke 介面的物件,且由這個型別的執行個體在建立事件處理常式的執行緒上,用來同步處理事件處理常式。Object that implements the ISynchronizeInvoke interface and is used by instances of this type for event handler synchronization on the thread that created it.

例外狀況

呼叫端物件已經過處置。The calling object has been disposed.

備註

這個屬性的預設值設定為null, 表示在系統執行緒集區執行緒上呼叫所有事件處理常式。The default set value for this property is null, indicating that all event handlers are called on a system thread pool thread.

這個屬性通常會設定為 UI 元素, 例如Form實例。This property is typically set to a UI element such as a Form instance.

適用於

另請參閱