Skip to main content

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)

public void VerifyAccess()

Implements

IDispatcher.VerifyAccess()

Exceptions

InvalidOperationExceptionThe current thread is not the UI thread.

See Also

Reference

Dispatcher Class
Avalonia.Threading Namespace