ModelAttributes.GetAttributesForProperty Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| GetAttributesForProperty(Type, PropertyInfo) |
Ruft die Attribute für die angegebene |
| GetAttributesForProperty(Type, PropertyInfo, Type) |
Ruft die Attribute für die angegebene |
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
- 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
- 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.