ModelAttributes Konstruktoren

Definition

Überlädt

ModelAttributes(IEnumerable<Object>)
Veraltet.

Erstellt eine neue ModelAttributes für eine Type.

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

Erstellt eine neue ModelAttributes für eine Eigenschaft.

ModelAttributes(IEnumerable<Object>)

Quelle:
ModelAttributes.cs
Quelle:
ModelAttributes.cs

Achtung

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

Erstellt eine neue ModelAttributes für eine 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))

Parameter

typeAttributes
IEnumerable<Object>

Der Satz von Attributen für den Type.

Attribute

Gilt für:

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

Quelle:
ModelAttributes.cs
Quelle:
ModelAttributes.cs

Achtung

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

Erstellt eine neue ModelAttributes für eine Eigenschaft.

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

Parameter

propertyAttributes
IEnumerable<Object>

Der Satz von Attributen für die Eigenschaft.

typeAttributes
IEnumerable<Object>

Der Satz von Attributen für die -Eigenschaft Type. Siehe PropertyType.

Attribute

Gilt für: