# MessageBoxResult enumeration

Identifies a single message box button, both as the button the user pressed and as the button that should be the default one.

```csharp
public enum MessageBoxResult
```

## Values

| name | value | description |
| --- | --- | --- |
| None | `0` | No button. Reported when the message box was dismissed without pressing one, and used to say that no particular button should be the default. |
| Ok | `1` | The OK button. |
| Cancel | `2` | The Cancel button. |
| Yes | `3` | The Yes button. |
| No | `4` | The No button. |
| Abort | `5` | The Abort button. |
| Retry | `6` | The Retry button. |
| Ignore | `7` | The Ignore button. |

## Remarks

The application services translate this to [`DialogResult`](../Eremex.AvaloniaUI.Controls.ApplicationServices/DialogResult.md), which is what [`IMessageBoxService`](../Eremex.AvaloniaUI.Controls.ApplicationServices/IMessageBoxService.md) returns.

## See Also

* namespace [Eremex.AvaloniaUI.Controls](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
