Class ItemRangeAttribute
Specifies a numeric range constraints for each item in a content list property.
Inheritance
System.Object
ItemRangeAttribute
Namespace: EPiServer.DataAnnotations
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public class ItemRangeAttribute : RangeAttribute
Constructors
ItemRangeAttribute(Int32, Int32)
Initializes a new instance of the ItemRangeAttribute class.
Declaration
public ItemRangeAttribute(int minimum, int maximum)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | minimum | Specifies the minimum value allowed for each item in the list property. |
System.Int32 | maximum | Specifies the maximum value allowed for each item in the list property. |
ItemRangeAttribute(Type, String, String)
Initializes a new instance of the ItemRangeAttribute class.
Declaration
public ItemRangeAttribute(Type type, string minimum, string maximum)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | Specifies the type of the object to test. |
System.String | minimum | Specifies the minimum value allowed for each item in the list property. |
System.String | maximum | Specifies the maximum value allowed for 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 |