StringLengthAttribute(Int32) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過使用指定的最大長度初始化類別的新 StringLengthAttribute 實例。
public:
StringLengthAttribute(int maximumLength);
public StringLengthAttribute(int maximumLength);
new System.ComponentModel.DataAnnotations.StringLengthAttribute : int -> System.ComponentModel.DataAnnotations.StringLengthAttribute
Public Sub New (maximumLength As Integer)
參數
- maximumLength
- Int32
弦的最大長度。