다음을 통해 공유


ModelAttributes 생성자

정의

오버로드

ModelAttributes(IEnumerable<Object>)
사용되지 않음.

에 대한 새 ModelAttributesType만듭니다.

ModelAttributes(IEnumerable<Object>, IEnumerable<Object>)
사용되지 않음.

속성에 대한 새 ModelAttributes 를 만듭니다.

ModelAttributes(IEnumerable<Object>)

Source:
ModelAttributes.cs
Source:
ModelAttributes.cs

주의

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

Source:
ModelAttributes.cs
Source:
ModelAttributes.cs

주의

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을 참조하세요.

특성

적용 대상