StringLengthAttribute.IsValid(Object) 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.
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
Paramètres
- value
- Object
Objet à valider.
Retours
true si l'objet spécifié est valide ; sinon false.
Exceptions
L’attribut actuel n’est pas bien formé.
Remarques
Cette méthode détermine si un objet est valide. Si la valeur de l’objet est null, la méthode valide automatiquement l’objet.