InputsDialogValidationContext
Handle
Represents the context for validating inputs in an inputs dialog interaction.
type InputsDialogValidationContext interface{}Properties
property
CancellationToken *CancellationToken getGets the cancellation token for the validation operation.
CancellationToken() (*CancellationToken, error)property
InputsInteractionInputCollection getGets the inputs that are being validated.
Inputs() InteractionInputCollectionproperty
ServicesServiceProvider getGets the service provider for resolving services during validation.
Services() ServiceProviderMethods
method
AddValidationError Adds a validation error for the input with the specified name.
AddValidationError( inputName string, errorMessage string,) errorParameters
inputName stringThe name of the input to add a validation error for.errorMessage stringThe error message to add.Returns
errorReturns error.