Skip to content
DocsTry Aspire
DocsTry

InputsDialogValidationContext.addValidationError

Method
📦 Aspire.Hosting v13.4.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
inputNamestring
errorMessagestring

Defined on

This method is defined on the following type: