Freigeben über


ModelAttributes.GetAttributesForProperty Methode

Definition

Überlädt

GetAttributesForProperty(Type, PropertyInfo)

Ruft die Attribute für die angegebene propertyab.

GetAttributesForProperty(Type, PropertyInfo, Type)

Ruft die Attribute für die angegebene property mit dem angegebenen modelTypeab.

GetAttributesForProperty(Type, PropertyInfo)

Quelle:
ModelAttributes.cs
Quelle:
ModelAttributes.cs
Quelle:
ModelAttributes.cs

Ruft die Attribute für die angegebene propertyab.

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

Die Type , in der der Aufrufer gefunden hat property.

property
PropertyInfo

Eine PropertyInfo , für die Attribute aufgelöst werden müssen.

Gibt zurück

Ein ModelAttributes instance mit den Attributen der -Eigenschaft und deren Type.

Gilt für:

GetAttributesForProperty(Type, PropertyInfo, Type)

Quelle:
ModelAttributes.cs
Quelle:
ModelAttributes.cs

Ruft die Attribute für die angegebene property mit dem angegebenen modelTypeab.

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

Die Type , in der der Aufrufer gefunden hat property.

property
PropertyInfo

Eine PropertyInfo , für die Attribute aufgelöst werden müssen.

modelType
Type

Modelltyp

Gibt zurück

Ein ModelAttributes instance mit den Attributen der -Eigenschaft und deren Type.

Gilt für: