MinLengthAttribute(Int32) Constructeur

Définition

Initialise une nouvelle instance de la classe MinLengthAttribute.

public:
 MinLengthAttribute(int length);
public MinLengthAttribute(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 MinLengthAttribute(int length);
new System.ComponentModel.DataAnnotations.MinLengthAttribute : int -> System.ComponentModel.DataAnnotations.MinLengthAttribute
[<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.MinLengthAttribute : int -> System.ComponentModel.DataAnnotations.MinLengthAttribute
Public Sub New (length As Integer)

Paramètres

length
Int32

Longueur du tableau ou des données de chaîne.

Attributs

S’applique à