PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Actor­Dispatcher Class / Actor­Dispatcher Methods / Actor­Dispatcher.​Check­Access Method

ActorDispatcher.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: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public 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.

Implements

IDispatcher.CheckAccess()
See Also