MaxLengthAttribute Construtores

Definição

Inicializa uma nova instância da MaxLengthAttribute classe.

Sobrecargas

Name Description
MaxLengthAttribute()

Inicializa uma nova instância da MaxLengthAttribute classe.

MaxLengthAttribute(Int32)

Inicializa uma nova instância da MaxLengthAttribute classe com base no length parâmetro.

MaxLengthAttribute()

Origem:
MaxLengthAttribute.cs
Origem:
MaxLengthAttribute.cs
Origem:
MaxLengthAttribute.cs
Origem:
MaxLengthAttribute.cs
Origem:
MaxLengthAttribute.cs

Inicializa uma nova instância da MaxLengthAttribute classe.

public:
 MaxLengthAttribute();
public MaxLengthAttribute();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Uses reflection to get the 'Count' property on types that don't implement ICollection. This 'Count' property may be trimmed. Ensure it is preserved.")]
public MaxLengthAttribute();
Public Sub New ()
Atributos

Observações

Será utilizado o comprimento máximo permitido suportado pela base de dados.

Aplica-se a

MaxLengthAttribute(Int32)

Origem:
MaxLengthAttribute.cs
Origem:
MaxLengthAttribute.cs
Origem:
MaxLengthAttribute.cs
Origem:
MaxLengthAttribute.cs
Origem:
MaxLengthAttribute.cs

Inicializa uma nova instância da MaxLengthAttribute classe com base no length parâmetro.

public:
 MaxLengthAttribute(int length);
public MaxLengthAttribute(int length);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Uses reflection to get the 'Count' property on types that don't implement ICollection. This 'Count' property may be trimmed. Ensure it is preserved.")]
public MaxLengthAttribute(int length);
new System.ComponentModel.DataAnnotations.MaxLengthAttribute : int -> System.ComponentModel.DataAnnotations.MaxLengthAttribute
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Uses reflection to get the 'Count' property on types that don't implement ICollection. This 'Count' property may be trimmed. Ensure it is preserved.")>]
new System.ComponentModel.DataAnnotations.MaxLengthAttribute : int -> System.ComponentModel.DataAnnotations.MaxLengthAttribute
Public Sub New (length As Integer)

Parâmetros

length
Int32

O comprimento máximo permitido de dados de array ou string.

Atributos

Aplica-se a