PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingIDispatcherCheck­Access
Open sandboxFocus

IDispatcher.CheckAccess Method

CheckAccess()

Determines whether the current thread has access to the current dispatcher.

Declaration
bool CheckAccess()
Returns
Type Description
Boolean

true if the current thread can directly call methods of objects protected by the current dispatcher, or false if methods Invoke(SendOrPostCallback, Object) or BeginInvoke(SendOrPostCallback, Object) must be used.