MinLengthAttribute(Int32) 建構函式

定義

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

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

參數

length
Int32

陣列或字串資料的長度。

適用於