MaxLengthAttribute Konstruktor

Definisi

Menginisialisasi instans baru dari kelas MaxLengthAttribute.

Overload

Nama Deskripsi
MaxLengthAttribute()

Menginisialisasi instans baru dari kelas MaxLengthAttribute.

MaxLengthAttribute(Int32)

Menginisialisasi instans MaxLengthAttribute baru kelas berdasarkan length parameter .

MaxLengthAttribute()

Sumber:
MaxLengthAttribute.cs
Sumber:
MaxLengthAttribute.cs
Sumber:
MaxLengthAttribute.cs
Sumber:
MaxLengthAttribute.cs
Sumber:
MaxLengthAttribute.cs

Menginisialisasi instans baru dari kelas 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 ()
Atribut

Keterangan

Panjang maksimum yang diperbolehkan yang didukung oleh database akan digunakan.

Berlaku untuk

MaxLengthAttribute(Int32)

Sumber:
MaxLengthAttribute.cs
Sumber:
MaxLengthAttribute.cs
Sumber:
MaxLengthAttribute.cs
Sumber:
MaxLengthAttribute.cs
Sumber:
MaxLengthAttribute.cs

Menginisialisasi instans MaxLengthAttribute baru kelas berdasarkan length parameter .

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)

Parameter

length
Int32

Panjang maksimum array atau data string yang diizinkan.

Atribut

Berlaku untuk