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

定義

取得DispatcherDispatcherObject相關聯。Gets 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所建立,呼叫InvokeBeginInvokeDispatcherDispatcherObject相關聯。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.

適用於