Share via


PatternAttribute Class

Definition

Provide a regular expression to validate a string field.

[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
Inheritance
PatternAttribute
Attributes

Remarks

If the regular expression is not matched the NotUnderstood template will be used for feedback.

Constructors

PatternAttribute(String)

Regular expression for validating the content of a string field.

Fields

Pattern

Applies to