Skip to content
Docs Try Aspire
Docs Try

InputsDialogValidationContext Methods

Class Methods 2 members
Represents the context for validating inputs in an inputs dialog interaction.
AddValidationError(InteractionInput, string) Section titled AddValidationError(InteractionInput, string)
Adds a validation error for the specified input.
public sealed class InputsDialogValidationContext
{
public void AddValidationError(
InteractionInput input,
string errorMessage)
{
// ...
}
}
input InteractionInput The input to add a validation error for.
errorMessage string The error message to add.
AddValidationError(string, string) Section titled AddValidationError(string, string)
Adds a validation error for the input with the specified name.
public sealed class InputsDialogValidationContext
{
public void AddValidationError(
string inputName,
string errorMessage)
{
// ...
}
}
inputName string The name of the input to add a validation error for.
errorMessage string The error message to add.