Share via


RegularExpressionAttribute Class

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Regular expression validation attribute.

Namespace:  Microsoft.Dynamics.Commerce.Runtime.ComponentModel.DataAnnotations
Assembly:  Microsoft.Dynamics.Commerce.Runtime.Framework (in Microsoft.Dynamics.Commerce.Runtime.Framework.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple := False)> _
Public Class RegularExpressionAttribute _
    Inherits ValidationAttribute
'Usage
Dim instance As RegularExpressionAttribute
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false)]
public class RegularExpressionAttribute : ValidationAttribute
[AttributeUsageAttribute(AttributeTargets::Property, AllowMultiple = false)]
public ref class RegularExpressionAttribute : public ValidationAttribute

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Dynamics.Commerce.Runtime.ComponentModel.DataAnnotations.ValidationAttribute
      Microsoft.Dynamics.Commerce.Runtime.ComponentModel.DataAnnotations.RegularExpressionAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Dynamics.Commerce.Runtime.ComponentModel.DataAnnotations Namespace