Langue

PatternAttribute Classe

Définition

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.

S’applique à