CheckAccess Method
Returns a value indicating whether the current thread is the UI thread.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public bool CheckAccess()
Public Function CheckAccess As Boolean
member CheckAccess : unit -> bool
Return Value
Boolean
true if the current thread is the UI thread; otherwise false.