# UIThreadCheckMode enum

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public enum UIThreadCheckMode
```

UI Thread check mode when [Application.EnsureUIThread()](https://eto.picoe.ca/api/type/eto.forms.application/ensureuithread.md) is called.

## Values

| Name | Value | Description |
| --- | --- | --- |
| None | 0 | Do no checking |
| Warning | 1 | Emit a warning with Trace.WriteLine() |
| Error | 2 | Throw an exception |
