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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應