Skip to content
DocsTry Aspire
DocsTry

InputsDialogValidationContext Methods

ClassMethods2 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)
{
// ...
}
}
inputInteractionInputThe input to add a validation error for.
errorMessagestringThe 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)
{
// ...
}
}
inputNamestringThe name of the input to add a validation error for.
errorMessagestringThe error message to add.