PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / IDispatcher Interface / IDispatcher Methods / IDispatcher.​Check­Access Method

IDispatcher.CheckAccess Method

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

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: (
bool CheckAccess()

Return Value

Type: 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.
See Also