Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

InputsDialogValidationContext.AddValidationError

Method
📦 Aspire.Hosting v17.0.0
type InputsDialogValidationContext interface {
// ... omitted for brevity
AddValidationError(
inputName string,
errorMessage string,
) error
}

Signature

methodAddValidationError
Adds a validation error for the input with the specified name.
AddValidationError(
inputName string,
errorMessage string,
) error
inputNamestringThe name of the input to add a validation error for.
errorMessagestringThe error message to add.
error

Returns error.

Defined on

This method is defined on the following type: