Язык

MaxLengthAttribute Конструкторы

Определение

Инициализирует новый экземпляр класса MaxLengthAttribute.

Перегрузки

Имя Описание
MaxLengthAttribute()

Инициализирует новый экземпляр класса MaxLengthAttribute.

MaxLengthAttribute(Int32)

Инициализирует новый экземпляр MaxLengthAttribute класса на length основе параметра.

MaxLengthAttribute()

Исходный код:
MaxLengthAttribute.cs
Исходный код:
MaxLengthAttribute.cs
Исходный код:
MaxLengthAttribute.cs
Исходный код:
MaxLengthAttribute.cs
Исходный код:
MaxLengthAttribute.cs

Инициализирует новый экземпляр класса 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 ()
Атрибуты

Комментарии

Будет использоваться максимальная допустимая длина, поддерживаемая базой данных.

Применяется к

MaxLengthAttribute(Int32)

Исходный код:
MaxLengthAttribute.cs
Исходный код:
MaxLengthAttribute.cs
Исходный код:
MaxLengthAttribute.cs
Исходный код:
MaxLengthAttribute.cs
Исходный код:
MaxLengthAttribute.cs

Инициализирует новый экземпляр MaxLengthAttribute класса на 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)

Параметры

length
Int32

Максимальная допустимая длина массива или строковых данных.

Атрибуты

Применяется к