MaxLengthAttribute Konstruktorok

Definíció

Inicializálja a MaxLengthAttribute osztály új példányát.

Túlterhelések

Name Description
MaxLengthAttribute()

Inicializálja a MaxLengthAttribute osztály új példányát.

MaxLengthAttribute(Int32)

Inicializálja az MaxLengthAttribute osztály új példányát a length paraméter alapján.

MaxLengthAttribute()

Forrás:
MaxLengthAttribute.cs
Forrás:
MaxLengthAttribute.cs
Forrás:
MaxLengthAttribute.cs
Forrás:
MaxLengthAttribute.cs
Forrás:
MaxLengthAttribute.cs

Inicializálja a MaxLengthAttribute osztály új példányát.

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 ()
Attribútumok

Megjegyzések

Az adatbázis által támogatott maximális megengedett hossz lesz használva.

A következőre érvényes:

MaxLengthAttribute(Int32)

Forrás:
MaxLengthAttribute.cs
Forrás:
MaxLengthAttribute.cs
Forrás:
MaxLengthAttribute.cs
Forrás:
MaxLengthAttribute.cs
Forrás:
MaxLengthAttribute.cs

Inicializálja az MaxLengthAttribute osztály új példányát a length paraméter alapján.

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éterek

length
Int32

A tömb- vagy sztringadatok maximális megengedett hossza.

Attribútumok

A következőre érvényes: