ColumnProvider.AddDefaultAttributes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds default attributes.
protected:
static System::ComponentModel::AttributeCollection ^ AddDefaultAttributes(System::Web::DynamicData::ModelProviders::ColumnProvider ^ columnProvider, System::ComponentModel::AttributeCollection ^ attributes);
protected static System.ComponentModel.AttributeCollection AddDefaultAttributes (System.Web.DynamicData.ModelProviders.ColumnProvider columnProvider, System.ComponentModel.AttributeCollection attributes);
static member AddDefaultAttributes : System.Web.DynamicData.ModelProviders.ColumnProvider * System.ComponentModel.AttributeCollection -> System.ComponentModel.AttributeCollection
Protected Shared Function AddDefaultAttributes (columnProvider As ColumnProvider, attributes As AttributeCollection) As AttributeCollection
Parameters
- columnProvider
- ColumnProvider
The column provider.
- attributes
- AttributeCollection
The attribute collection.
Returns
The attribute collection.
Remarks
If the attributes
parameter does not contain the RequiredAttribute collection, but the model provider requires this attribute, the RequiredAttribute object is added. If the attributes
parameter does not contain the StringLengthAttribute collection and the column that is represented by this provider is a string, the StringLengthAttribute object is added.
Applies to
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по