Condividi tramite


ModelAttributes Costruttori

Definizione

Overload

ModelAttributes(IEnumerable<Object>)
Obsoleti.

Crea un nuovo ModelAttributes oggetto per un Typeoggetto .

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

Crea un nuovo ModelAttributes oggetto per una proprietà.

ModelAttributes(IEnumerable<Object>)

Origine:
ModelAttributes.cs
Origine:
ModelAttributes.cs

Attenzione

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

Crea un nuovo ModelAttributes oggetto per un Typeoggetto .

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

Parametri

typeAttributes
IEnumerable<Object>

Set di attributi per .Type

Attributi

Si applica a

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

Origine:
ModelAttributes.cs
Origine:
ModelAttributes.cs

Attenzione

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

Crea un nuovo ModelAttributes oggetto per una proprietà.

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

Parametri

propertyAttributes
IEnumerable<Object>

Set di attributi per la proprietà.

typeAttributes
IEnumerable<Object>

Set di attributi per la proprietà .Type Vedere PropertyType.

Attributi

Si applica a