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

Name Description
PatternAttribute(String)

Regular expression for validating the content of a string field.

Fields

Name Description
Pattern

Applies to