IClientValidationAdapter.GetClientValidationRules(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Produces the client-side validation rules for this attribute. Return an empty sequence if the attribute should not emit any client-side rule.
public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Components.Forms.ClientValidation.ClientValidationRule> GetClientValidationRules(string errorMessage);
abstract member GetClientValidationRules : string -> seq<Microsoft.AspNetCore.Components.Forms.ClientValidation.ClientValidationRule>
Public Function GetClientValidationRules (errorMessage As String) As IEnumerable(Of ClientValidationRule)
Parameters
- errorMessage
- String
The pre-formatted (optionally localized) error message.