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.

适用于