Condividi tramite


ModelAttributes.GetAttributesForProperty Metodo

Definizione

Overload

GetAttributesForProperty(Type, PropertyInfo)

Ottiene gli attributi per l'oggetto specificato property.

GetAttributesForProperty(Type, PropertyInfo, Type)

Ottiene gli attributi per l'oggetto specificato property con l'oggetto specificato modelType.

GetAttributesForProperty(Type, PropertyInfo)

Origine:
ModelAttributes.cs
Origine:
ModelAttributes.cs
Origine:
ModelAttributes.cs

Ottiene gli attributi per l'oggetto specificato 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

Parametri

type
Type

Oggetto Type in cui il chiamante ha trovato property.

property
PropertyInfo

Oggetto PropertyInfo per il quale gli attributi devono essere risolti.

Restituisce

ModelAttributes Istanza con gli attributi della proprietà e del relativo Type.

Si applica a

GetAttributesForProperty(Type, PropertyInfo, Type)

Origine:
ModelAttributes.cs
Origine:
ModelAttributes.cs

Ottiene gli attributi per l'oggetto specificato property con l'oggetto specificato 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

Parametri

containerType
Type

Oggetto Type in cui il chiamante ha trovato property.

property
PropertyInfo

Oggetto PropertyInfo per il quale gli attributi devono essere risolti.

modelType
Type

Tipo di modello

Restituisce

ModelAttributes Istanza con gli attributi della proprietà e del relativo Type.

Si applica a