MaxLengthAttribute Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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 |
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