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: 11.20.7Syntax
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
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 |