MetaColumn.MaxLength Propriedade
Definição
Obtém um valor que indica o tamanho máximo dos dados que podem ser armazenados no campo de dados.Gets a value that indicates the maximum length of data that can be stored in the data field.
public:
property int MaxLength { int get(); };
public int MaxLength { get; }
member this.MaxLength : int
Public ReadOnly Property MaxLength As Integer
Valor da propriedade
O comprimento máximo dos dados que podem ser armazenados no campo de dados.The maximum length of data that can be stored in the data field.
Comentários
A MaxLength propriedade verifica se um StringLengthAttribute atributo é aplicado ao campo de dados e recupera o valor da MaximumLength propriedade.The MaxLength property verifies if a StringLengthAttribute attribute is applied to the data field and retrieves the value of the MaximumLength property. Se um StringLengthAttribute atributo não for aplicado ao campo data, a MaxLength Propriedade usará o tipo de banco de dados para recuperar o comprimento máximo permitido.If a StringLengthAttribute attribute is not applied to the data field, the MaxLength property uses the database type to retrieve the maximum length allowed.