ModelAttributes Constructors

Definition

Overloads

ModelAttributes(IEnumerable<Object>)
Obsolete.

Creates a new ModelAttributes for a Type.

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

Creates a new ModelAttributes for a property.

ModelAttributes(IEnumerable<Object>)

Source:
ModelAttributes.cs
Source:
ModelAttributes.cs

Caution

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

Creates a new ModelAttributes for a 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))

Parameters

typeAttributes
IEnumerable<Object>

The set of attributes for the Type.

Attributes

Applies to

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

Source:
ModelAttributes.cs
Source:
ModelAttributes.cs

Caution

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

Creates a new ModelAttributes for a property.

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

Parameters

propertyAttributes
IEnumerable<Object>

The set of attributes for the property.

typeAttributes
IEnumerable<Object>

The set of attributes for the property's Type. See PropertyType.

Attributes

Applies to