ModelAttributes 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ModelAttributes(IEnumerable<Object>) |
已淘汰.
為 建立新的 ModelAttributesType 。 |
ModelAttributes(IEnumerable<Object>, IEnumerable<Object>) |
已淘汰.
為屬性建立新的 ModelAttributes 。 |
ModelAttributes(IEnumerable<Object>)
警告
This constructor is obsolete and will be removed in a future version. The recommended alternative is ModelAttributes.GetAttributesForType.
為 建立新的 ModelAttributesType 。
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))
參數
- typeAttributes
- IEnumerable<Object>
的屬性 Type 集。
- 屬性
適用於
ModelAttributes(IEnumerable<Object>, IEnumerable<Object>)
警告
This constructor is obsolete and will be removed in a future version. The recommended alternative is ModelAttributes.GetAttributesForProperty.
為屬性建立新的 ModelAttributes 。
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))
參數
- propertyAttributes
- IEnumerable<Object>
屬性的屬性集。
- typeAttributes
- IEnumerable<Object>
屬性的屬性 Type 集。 請參閱 PropertyType。
- 屬性