Idioma

PatternAttribute Classe

Definição

Forneça uma expressão regular para validar um campo de strings.

[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
Herança
PatternAttribute
Atributos

Observações

Se a expressão regular não for correspondida, o NotUnderstood modelo será usado para feedback.

Construtores

Name Descrição
PatternAttribute(String)

Expressão regular para validar o conteúdo de um campo de string.

Campos

Name Descrição
Pattern

Forneça uma expressão regular para validar um campo de strings.

Aplica-se a