Language

IReadOnlyProperty.GetMaxLength メソッド

定義

このプロパティで許可されているデータの最大長を取得します。 たとえば、プロパティが String の場合、これは最大文字数です。

public int? GetMaxLength();
abstract member GetMaxLength : unit -> Nullable<int>
Public Function GetMaxLength () As Nullable(Of Integer)

戻り値

最大長。プロパティに最大長がない場合は -1 、最大長が設定されていない場合は null 。

適用対象