ModelAttributes Constructeurs

Définition

Surcharges

ModelAttributes(IEnumerable<Object>)
Obsolète.

Crée un nouveau ModelAttributes pour un Type.

ModelAttributes(IEnumerable<Object>, IEnumerable<Object>)
Obsolète.

Crée un nouveau ModelAttributes pour une propriété.

ModelAttributes(IEnumerable<Object>)

Source:
ModelAttributes.cs
Source:
ModelAttributes.cs

Attention

This constructor is obsolete and will be removed in a future version. The recommended alternative is ModelAttributes.GetAttributesForType.

Crée un nouveau ModelAttributes pour un Type.

C#
public ModelAttributes (System.Collections.Generic.IEnumerable<object> typeAttributes);
C#
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is ModelAttributes.GetAttributesForType.")]
public ModelAttributes (System.Collections.Generic.IEnumerable<object> typeAttributes);

Paramètres

typeAttributes
IEnumerable<Object>

Ensemble d’attributs pour .Type

Attributs

S’applique à

ASP.NET Core 2.2 et autres versions
Produit Versions (Obsolète)
ASP.NET Core 1.0, 1.1, 2.0 ( 2.1, 2.2)

ModelAttributes(IEnumerable<Object>, IEnumerable<Object>)

Source:
ModelAttributes.cs
Source:
ModelAttributes.cs

Attention

This constructor is obsolete and will be removed in a future version. The recommended alternative is ModelAttributes.GetAttributesForProperty.

Crée un nouveau ModelAttributes pour une propriété.

C#
public ModelAttributes (System.Collections.Generic.IEnumerable<object> propertyAttributes, System.Collections.Generic.IEnumerable<object> typeAttributes);
C#
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is ModelAttributes.GetAttributesForProperty.")]
public ModelAttributes (System.Collections.Generic.IEnumerable<object> propertyAttributes, System.Collections.Generic.IEnumerable<object> typeAttributes);

Paramètres

propertyAttributes
IEnumerable<Object>

Ensemble d’attributs pour la propriété .

typeAttributes
IEnumerable<Object>

Ensemble d’attributs pour la propriété .Type Consultez PropertyType.

Attributs

S’applique à

ASP.NET Core 2.2 et autres versions
Produit Versions (Obsolète)
ASP.NET Core 1.0, 1.1, 2.0 ( 2.1, 2.2)