Class ItemStringLengthAttribute
Specifies the minimum and maximum length of characters that are allowed for each item in a content list property.
Inheritance
System.Object
ItemStringLengthAttribute
Namespace: EPiServer.DataAnnotations
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public class ItemStringLengthAttribute : StringLengthAttribute
Constructors
ItemStringLengthAttribute(Int32)
Initializes a new instance of the Item
Declaration
public ItemStringLengthAttribute(int maximumLength)
Parameters
Type | Name | Description |
---|---|---|
System. |
maximumLength | The maximum string length of a each item in the list. |
Methods
IsValid(Object)
Declaration
public override bool IsValid(object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value |
Returns
Type | Description |
---|---|
System. |