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.
Fournir une expression régulière pour valider un champ de chaînes.
[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 correspondante, le NotUnderstood modèle sera utilisé pour le retour de retour.
Constructeurs
| Nom | Description |
|---|---|
| PatternAttribute(String) |
Expression régulière pour valider le contenu d’un champ de chaînes. |
Champs
| Nom | Description |
|---|---|
| Pattern |
Fournir une expression régulière pour valider un champ de chaînes. |