StringLengthAttribute(Int32) 建構函式

定義

透過使用指定的最大長度初始化類別的新 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

弦的最大長度。

適用於