Compartir a través de


ModelAttributes Constructores

Definición

Sobrecargas

ModelAttributes(IEnumerable<Object>)
Obsoletos.

Crea un nuevo ModelAttributes objeto para un Typeobjeto .

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

Crea un nuevo ModelAttributes objeto para una propiedad .

ModelAttributes(IEnumerable<Object>)

Source:
ModelAttributes.cs
Source:
ModelAttributes.cs

Precaución

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

Crea un nuevo ModelAttributes objeto para un Typeobjeto .

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))

Parámetros

typeAttributes
IEnumerable<Object>

Conjunto de atributos para Type.

Atributos

Se aplica a

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

Source:
ModelAttributes.cs
Source:
ModelAttributes.cs

Precaución

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

Crea un nuevo ModelAttributes objeto para una propiedad .

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))

Parámetros

propertyAttributes
IEnumerable<Object>

Conjunto de atributos para la propiedad .

typeAttributes
IEnumerable<Object>

Conjunto de atributos para el objeto de Typela propiedad . Vea PropertyType.

Atributos

Se aplica a