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 的线程才能直接访问 DispatcherObjectOnly the thread that the Dispatcher was created on may access the DispatcherObject directly. 若要从创建 DispatcherObject 的线程以外的线程访问 DispatcherObject,请在与 Dispatcher 关联的 DispatcherObject 上调用 InvokeBeginInvokeTo 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.

适用于