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.6.14.0 (6.6.14.0)
C#
bool CheckAccess()
Return Value
Type: Booleantrue 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.