November Happy Hour will be moved to Thursday December 5th.

Class ItemRegularExpressionAttribute

Specifies that each item in a content list property must match the specified regular expression.

Inheritance
System.Object
ItemRegularExpressionAttribute
Namespace: EPiServer.DataAnnotations
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public class ItemRegularExpressionAttribute : RegularExpressionAttribute

Constructors

ItemRegularExpressionAttribute(String)

Initializes a new instance of the ItemRegularExpressionAttribute class.

Declaration
public ItemRegularExpressionAttribute(string pattern)
Parameters
Type Name Description
System.String pattern

The regular expression that is used to validate each item in the list property.

Methods

IsValid(Object)

Declaration
public override bool IsValid(object value)
Parameters
Type Name Description
System.Object value
Returns
Type Description
System.Boolean

Extension Methods