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 , 请在与关联的Invoke DispatcherObjectBeginInvoke调用和。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.

适用于