MaxLengthAttribute Конструкторы
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Инициализирует новый экземпляр класса MaxLengthAttribute.
Перегрузки
| Имя | Описание |
|---|---|
| MaxLengthAttribute() |
Инициализирует новый экземпляр класса MaxLengthAttribute. |
| MaxLengthAttribute(Int32) |
Инициализирует новый экземпляр MaxLengthAttribute класса на |
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
Максимальная допустимая длина массива или строковых данных.
- Атрибуты