DispatcherObject.Dispatcher DispatcherObject.Dispatcher DispatcherObject.Dispatcher DispatcherObject.Dispatcher Property

定義

取得與這個 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

屬性值

發送器。The dispatcher.

備註

只有在上建立的Dispatcher執行緒可以DispatcherObject直接存取。Only the thread that the Dispatcher was created on may access the DispatcherObject directly. 若要DispatcherObject從所建立之執行緒以外DispatcherObject的執行緒存取Dispatcher , 請在與相關InvokeBeginInvoke的上DispatcherObject呼叫和。To 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.

適用於