DispatcherVerifyAccess 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) Version: 11.3.999
public void VerifyAccess()

Implements

IDispatcherVerifyAccess

Exceptions

InvalidOperationException The current thread is not the UI thread.

See Also