Bagikan melalui


ModelAttributes.GetAttributesForProperty Metode

Definisi

Overload

GetAttributesForProperty(Type, PropertyInfo)

Mendapatkan atribut untuk yang diberikan property.

GetAttributesForProperty(Type, PropertyInfo, Type)

Mendapatkan atribut untuk yang diberikan property dengan yang ditentukan modelType.

GetAttributesForProperty(Type, PropertyInfo)

Sumber:
ModelAttributes.cs
Sumber:
ModelAttributes.cs
Sumber:
ModelAttributes.cs

Mendapatkan atribut untuk yang diberikan property.

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::ModelAttributes ^ GetAttributesForProperty(Type ^ type, System::Reflection::PropertyInfo ^ property);
public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes GetAttributesForProperty (Type type, System.Reflection.PropertyInfo property);
static member GetAttributesForProperty : Type * System.Reflection.PropertyInfo -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes
Public Shared Function GetAttributesForProperty (type As Type, property As PropertyInfo) As ModelAttributes

Parameter

type
Type

di Type mana penelepon menemukan property.

property
PropertyInfo

Atribut PropertyInfo mana yang perlu diselesaikan.

Mengembalikan

Instans ModelAttributes dengan atribut properti dan Type.

Berlaku untuk

GetAttributesForProperty(Type, PropertyInfo, Type)

Sumber:
ModelAttributes.cs
Sumber:
ModelAttributes.cs

Mendapatkan atribut untuk yang diberikan property dengan yang ditentukan modelType.

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::ModelAttributes ^ GetAttributesForProperty(Type ^ containerType, System::Reflection::PropertyInfo ^ property, Type ^ modelType);
public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes GetAttributesForProperty (Type containerType, System.Reflection.PropertyInfo property, Type modelType);
static member GetAttributesForProperty : Type * System.Reflection.PropertyInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes
Public Shared Function GetAttributesForProperty (containerType As Type, property As PropertyInfo, modelType As Type) As ModelAttributes

Parameter

containerType
Type

di Type mana penelepon menemukan property.

property
PropertyInfo

Atribut PropertyInfo mana yang perlu diselesaikan.

modelType
Type

Jenis model

Mengembalikan

Instans ModelAttributes dengan atribut properti dan Type.

Berlaku untuk