PostSharp6.0/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: 6.0.35.0 (6.0.35.0)
Syntax
C#
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