Share via


IReadOnlyProperty.GetMaxLength Metodo

Definizione

Ottiene la lunghezza massima dei dati consentiti in questa proprietà. Ad esempio, se la proprietà è un String oggetto , si tratta del numero massimo di caratteri.

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

Restituisce

Lunghezza massima, -1 se la proprietà non ha lunghezza massima o null se la lunghezza massima non è stata impostata.

Si applica a