InputsDialogValidationContext.addValidationError

Method
📦 Aspire.Hosting v17.0.0
interface InputsDialogValidationContext {
// ... omitted for brevity
addValidationError(
inputName: string,
errorMessage: string): void;
}

Signature

methodaddValidationError
Adds a validation error for the input with the specified name.
addValidationError(
inputName: string,
errorMessage: string): void
inputNamestringThe name of the input to add a validation error for.
errorMessagestringThe error message to add.

Defined on

This method is defined on the following type: