IReadOnlyElementType.GetMaxLength 方法

定义

获取集合元素中允许的最大数据长度。 例如,如果元素类型为 , String 则这是最大字符数。

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

返回

如果属性没有最大长度,则为最大长度 -1 ,或者 null 尚未设置最大长度。

适用于