# InputsDialogInteractionOptions Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [InputsDialogInteractionOptions](/reference/api/csharp/aspire.hosting/inputsdialoginteractionoptions.md)
- Kind: `Properties`
- Members: `1`

Options for configuring an inputs dialog interaction.

## ValidationCallback

- Name: `ValidationCallback`
- Modifiers: `nullable` `get; set`
- Returns: `Func<InputsDialogValidationContext, Task>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/IInteractionService.cs)

Gets or sets the validation callback for the inputs dialog. This callback is invoked when the user submits the dialog. If validation errors are added to the [InputsDialogValidationContext](/reference/api/csharp/aspire.hosting/inputsdialogvalidationcontext.md), the dialog will not close and the user will be prompted to correct the errors.

```csharp
public Func<InputsDialogValidationContext, Task>? ValidationCallback { get; set; }
```
