MaxLengthAttribute Constructeurs

Définition

Initialise une nouvelle instance de la classe MaxLengthAttribute.

Surcharges

Nom Description
MaxLengthAttribute()

Initialise une nouvelle instance de la classe MaxLengthAttribute.

MaxLengthAttribute(Int32)

Initialise une nouvelle instance de la MaxLengthAttribute classe en fonction du length paramètre.

MaxLengthAttribute()

Source:
MaxLengthAttribute.cs
Source:
MaxLengthAttribute.cs
Source:
MaxLengthAttribute.cs
Source:
MaxLengthAttribute.cs
Source:
MaxLengthAttribute.cs

Initialise une nouvelle instance de la classe MaxLengthAttribute.

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 ()
Attributs

Remarques

La longueur maximale autorisée prise en charge par la base de données sera utilisée.

S’applique à

MaxLengthAttribute(Int32)

Source:
MaxLengthAttribute.cs
Source:
MaxLengthAttribute.cs
Source:
MaxLengthAttribute.cs
Source:
MaxLengthAttribute.cs
Source:
MaxLengthAttribute.cs

Initialise une nouvelle instance de la MaxLengthAttribute classe en fonction du length paramètre.

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)

Paramètres

length
Int32

Longueur maximale autorisée des données de tableau ou de chaîne.

Attributs

S’applique à