Bagikan melalui


ModelAttributes Konstruktor

Definisi

Overload

ModelAttributes(IEnumerable<Object>)
Kedaluwarsa.

Membuat baru ModelAttributes untuk Type.

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

Membuat baru ModelAttributes untuk properti.

ModelAttributes(IEnumerable<Object>)

Sumber:
ModelAttributes.cs
Sumber:
ModelAttributes.cs

Perhatian

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

Membuat baru ModelAttributes untuk 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>

Sekumpulan atribut untuk Type.

Atribut

Berlaku untuk

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

Sumber:
ModelAttributes.cs
Sumber:
ModelAttributes.cs

Perhatian

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

Membuat baru ModelAttributes untuk properti.

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>

Sekumpulan atribut untuk properti .

typeAttributes
IEnumerable<Object>

Sekumpulan atribut untuk properti Type. Lihat PropertyType.

Atribut

Berlaku untuk