MaxLengthAttribute.Length Property

Gets the maximum allowable length of the array/string data.

Namespace:  System.ComponentModel.DataAnnotations
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Property Length As Integer
    Get
    Friend Set
'Usage
Dim instance As MaxLengthAttribute
Dim value As Integer

value = instance.Length
public int Length { get; internal set; }
public:
property int Length {
    int get ();
    internal: void set (int value);
}
member Length : int with get, internal set
function get Length () : int
internal function set Length (value : int)

Property Value

Type: System.Int32

See Also

Reference

MaxLengthAttribute Class

System.ComponentModel.DataAnnotations Namespace