PatternAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |