StringLengthAttribute.FormatErrorMessage(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Applique une mise en forme à un message d'erreur spécifié.
public:
override System::String ^ FormatErrorMessage(System::String ^ name);
public override string FormatErrorMessage (string name);
override this.FormatErrorMessage : string -> string
Public Overrides Function FormatErrorMessage (name As String) As String
Paramètres
- name
- String
Nom du champ ayant provoqué l'échec de validation.
Retours
Message d'erreur mis en forme.
Exceptions
maximumLength est un nombre négatif.
- ou -
maximumLength est inférieur à minimumLength.
L’attribut actuel n’est pas bien formé.