語言

IReadOnlyProperty.GetMaxLength 方法

定義

取得此屬性允許的最大資料長度。 例如,若性質為 a String ,則這是最大字元數。

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

傳回

如果屬性沒有最大長度,或null未設定最大長度,則為最大長度-1。

適用於