Dispatcher.CheckAccess Method ()
Determines whether the calling thread is the thread associated with this Dispatcher.
Assembly: WindowsBase (in WindowsBase.dll)
can be called from any thread.
The following example uses Button. The method on the Dispatcher associated with the Button is called to verify access to the thread. If the calling thread has access to the Dispatcher, the Button is updated by accessing the members of the Button; otherwise, a delegate, which accepts a Button as an argument, is placed onto the Dispatcher. The Dispatcher will delegate the work of updating the Button.to determine whether a thread has access to a
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0