MinLengthAttribute.IsValid(Object) Méthode
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.
Détermine si un objet spécifié est valide.
public:
override bool IsValid(System::Object ^ value);
public override bool IsValid (object value);
public override bool IsValid (object? value);
override this.IsValid : obj -> bool
Public Overrides Function IsValid (value As Object) As Boolean
- value
- Object
Objet à valider.
true
si l'objet spécifié est valide ; sinon false
.
La longueur est inférieure à zéro.
Cette méthode retourne true
si value
est null
. Il suppose que est RequiredAttribute utilisé si la valeur n’est peut-être null
pas .
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :