PatternAttribute Classe
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.
Fournissez une expression régulière pour valider un champ de chaîne.
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
[System.Serializable]
public class PatternAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
[<System.Serializable>]
type PatternAttribute = class
inherit Attribute
Public Class PatternAttribute
Inherits Attribute
- Héritage
-
PatternAttribute
- Attributs
Remarques
Si l’expression régulière n’est pas mise en correspondance, le NotUnderstood modèle sera utilisé pour les commentaires.
Constructeurs
| PatternAttribute(String) |
Expression régulière pour la validation du contenu d’un champ de chaîne. |
Champs
| Pattern |
Fournissez une expression régulière pour valider un champ de chaîne. |