RegexStringValidator.CanValidate(Type) 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 le type de l'objet peut être validé.
public:
override bool CanValidate(Type ^ type);
public override bool CanValidate(Type type);
override this.CanValidate : Type -> bool
Public Overrides Function CanValidate (type As Type) As Boolean
Paramètres
- type
- Type
Type d'objet.
Retours
true si le paramètre type correspond à une chaîne ; sinon, false.
Remarques
Une exception est levée en cas d’échec de la validation.