DispatcherObject.Dispatcher 属性

定义

获取与此 Dispatcher 关联的 DispatcherObject

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

调度程序。

注解

只有创建的线程 Dispatcher 才能直接访问 DispatcherObject 。 若要从创建线程以外的线程访问该DispatcherObject线程,请调用Invoke该线程,并在BeginInvoke Dispatcher DispatcherObject该线程上与该线程相关联。DispatcherObject

适用于