# IDispatcherService.CheckAccess method

Returns whether the calling thread is the UI thread.

**Namespace:** [`Eremex.AvaloniaUI.Controls.ApplicationServices`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)  
**Assembly:** `Eremex.Common.Contracts.dll`  
**NuGet Package:** [Eremex.Common.Contracts](https://www.nuget.org/packages/Eremex.Common.Contracts)

## Declaration

```csharp
public bool CheckAccess()
```

## Returns

| type | description |
| --- | --- |
| `bool` | `true` when called from the UI thread. |

## See Also

* interface [IDispatcherService](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IDispatcherService/index.md)
* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
