DispatcherObject.Dispatcher 屬性

定義

取得與這個 Dispatcher 關聯的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

public:
 property System::Windows::Threading::Dispatcher ^ Dispatcher { System::Windows::Threading::Dispatcher ^ get(); };
public System.Windows.Threading.Dispatcher Dispatcher { get; }
member this.Dispatcher : System.Windows.Threading.Dispatcher
Public ReadOnly Property Dispatcher As Dispatcher

屬性值

Dispatcher

發送器。The dispatcher.

備註

只有在 Dispatcher 上建立的執行緒可以 DispatcherObject 直接存取。Only the thread that the Dispatcher was created on may access the DispatcherObject directly. 若要 DispatcherObject 從所建立之執行緒以外的執行緒存取 DispatcherObject ,請在 Invoke BeginInvoke Dispatcher 與相關聯的上呼叫和 DispatcherObjectTo access a DispatcherObject from a thread other than the thread the DispatcherObject was created on, call Invoke and BeginInvoke on the Dispatcher the DispatcherObject is associated with.

適用於