DispatcherObject.Dispatcher Proprietà


Ottiene l'oggetto Dispatcher associato a DispatcherObject.Gets the Dispatcher this DispatcherObject is associated with.

 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

Valore della proprietà

Dispatcher.The dispatcher.


Solo il thread in cui Dispatcher è stato creato l'oggetto può DispatcherObject accedere direttamente a.Only the thread that the Dispatcher was created on may access the DispatcherObject directly. Per accedere a DispatcherObject da un thread diverso DispatcherObject da quello in cui è stato creato l'oggetto Invoke Dispatcher , BeginInvoke DispatcherObject chiamare e sull'oggetto a cui è associato.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.

Si applica a