Partager via


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.

public:
 ModelAttributes(System::Collections::Generic::IEnumerable<System::Object ^> ^ typeAttributes);
public ModelAttributes (System.Collections.Generic.IEnumerable<object> typeAttributes);
[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);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes : seq<obj> -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is ModelAttributes.GetAttributesForType.")>]
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes : seq<obj> -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes
Public Sub New (typeAttributes As IEnumerable(Of Object))

Paramètres

typeAttributes
IEnumerable<Object>

Ensemble d’attributs pour .Type

Attributs

S’applique à

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é.

public:
 ModelAttributes(System::Collections::Generic::IEnumerable<System::Object ^> ^ propertyAttributes, System::Collections::Generic::IEnumerable<System::Object ^> ^ typeAttributes);
public ModelAttributes (System.Collections.Generic.IEnumerable<object> propertyAttributes, System.Collections.Generic.IEnumerable<object> typeAttributes);
[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);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes : seq<obj> * seq<obj> -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is ModelAttributes.GetAttributesForProperty.")>]
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes : seq<obj> * seq<obj> -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes
Public Sub New (propertyAttributes As IEnumerable(Of Object), typeAttributes As IEnumerable(Of Object))

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 à