MaxLengthAttribute Konstruktorer

Definition

Initierar en ny instans av MaxLengthAttribute klassen.

Överlagringar

Name Description
MaxLengthAttribute()

Initierar en ny instans av MaxLengthAttribute klassen.

MaxLengthAttribute(Int32)

Initierar en ny instans av MaxLengthAttribute klassen baserat på parametern length .

MaxLengthAttribute()

Källa:
MaxLengthAttribute.cs
Källa:
MaxLengthAttribute.cs
Källa:
MaxLengthAttribute.cs
Källa:
MaxLengthAttribute.cs
Källa:
MaxLengthAttribute.cs

Initierar en ny instans av MaxLengthAttribute klassen.

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

Kommentarer

Den maximala tillåtna längden som stöds av databasen används.

Gäller för

MaxLengthAttribute(Int32)

Källa:
MaxLengthAttribute.cs
Källa:
MaxLengthAttribute.cs
Källa:
MaxLengthAttribute.cs
Källa:
MaxLengthAttribute.cs
Källa:
MaxLengthAttribute.cs

Initierar en ny instans av MaxLengthAttribute klassen baserat på parametern length .

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)

Parametrar

length
Int32

Den maximala tillåtna längden på matris- eller strängdata.

Attribut

Gäller för