次の方法で共有


RuntimeElementType.GetMaxLength メソッド

定義

コレクションの要素で許可されるデータの最大長を取得します。 たとえば、要素の型が である String 場合、これは最大文字数です。

[System.Diagnostics.DebuggerStepThrough]
public virtual int? GetMaxLength ();
[<System.Diagnostics.DebuggerStepThrough>]
abstract member GetMaxLength : unit -> Nullable<int>
override this.GetMaxLength : unit -> Nullable<int>
Public Overridable Function GetMaxLength () As Nullable(Of Integer)

戻り値

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

属性

適用対象