MaxLengthAttribute 建構函式

定義

初始化 MaxLengthAttribute 類別的新執行個體。

多載

MaxLengthAttribute()

初始化 MaxLengthAttribute 類別的新執行個體。

MaxLengthAttribute(Int32)

根據 length 參數初始化 MaxLengthAttribute 類別的新執行個體。

MaxLengthAttribute()

來源:
MaxLengthAttribute.cs
來源:
MaxLengthAttribute.cs
來源:
MaxLengthAttribute.cs

初始化 MaxLengthAttribute 類別的新執行個體。

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

備註

將會使用資料庫所支援的最大容許長度。

適用於

MaxLengthAttribute(Int32)

來源:
MaxLengthAttribute.cs
來源:
MaxLengthAttribute.cs
來源:
MaxLengthAttribute.cs

根據 length 參數初始化 MaxLengthAttribute 類別的新執行個體。

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

參數

length
Int32

陣列或字串資料所容許的最大長度。

適用於