共用方式為


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 尚未設定最大長度,則為最大長度。

屬性

適用於