Edit

Share via


MaxLengthAttribute Constructors

Definition

Initializes a new instance of the MaxLengthAttribute class.

Overloads

MaxLengthAttribute()

Initializes a new instance of the MaxLengthAttribute class.

MaxLengthAttribute(Int32)

Initializes a new instance of the MaxLengthAttribute class based on the length parameter.

MaxLengthAttribute()

Source:
MaxLengthAttribute.cs
Source:
MaxLengthAttribute.cs
Source:
MaxLengthAttribute.cs

Initializes a new instance of the MaxLengthAttribute class.

public:
 MaxLengthAttribute();
public MaxLengthAttribute ();
Public Sub New ()

Remarks

The maximum allowable length supported by the database will be used.

Applies to

MaxLengthAttribute(Int32)

Source:
MaxLengthAttribute.cs
Source:
MaxLengthAttribute.cs
Source:
MaxLengthAttribute.cs

Initializes a new instance of the MaxLengthAttribute class based on the length parameter.

public:
 MaxLengthAttribute(int length);
public MaxLengthAttribute (int length);
new System.ComponentModel.DataAnnotations.MaxLengthAttribute : int -> System.ComponentModel.DataAnnotations.MaxLengthAttribute
Public Sub New (length As Integer)

Parameters

length
Int32

The maximum allowable length of array or string data.

Applies to