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已创建,调用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.

适用于