MaxLengthAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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.