VerifyAccess Method
Checks that the current thread is the UI thread and throws if not.
Definition
Namespace: Avalonia.Threading
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public void VerifyAccess()
Public Sub VerifyAccess
abstract VerifyAccess : unit -> unit
override VerifyAccess : unit -> unit
Implements
IDispatcher.VerifyAccess()Exceptions
InvalidOperationException | The current thread is not the UI thread. |