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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for