Partager via


PatternAttribute Classe

Définition

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.

S’applique à