IClientValidationAdapter.GetClientValidationRules(String) Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Tworzy reguły weryfikacji po stronie klienta dla tego atrybutu. Zwróć pustą sekwencję, jeśli atrybut nie powinien emitować żadnej reguły po stronie klienta.
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)
Parametry
- errorMessage
- String
Wstępnie sformatowany (opcjonalnie zlokalizowany) komunikat o błędzie.