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

文字列の最大長。

適用対象