Share via


ModelAttributes.GetAttributesForParameter Méthode

Définition

Surcharges

GetAttributesForParameter(ParameterInfo)

Obtient les attributs pour le donné parameterInfo.

GetAttributesForParameter(ParameterInfo, Type)

Obtient les attributs pour le donné parameterInfo avec le spécifié modelType.

GetAttributesForParameter(ParameterInfo)

Source:
ModelAttributes.cs
Source:
ModelAttributes.cs

Obtient les attributs pour le donné parameterInfo.

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::ModelAttributes ^ GetAttributesForParameter(System::Reflection::ParameterInfo ^ parameterInfo);
public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes GetAttributesForParameter (System.Reflection.ParameterInfo parameterInfo);
static member GetAttributesForParameter : System.Reflection.ParameterInfo -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes
Public Shared Function GetAttributesForParameter (parameterInfo As ParameterInfo) As ModelAttributes

Paramètres

parameterInfo
ParameterInfo

ParameterInfo pour lequel les attributs doivent être résolus.

Retours

Une ModelAttributes instance avec les attributs du paramètre et de son Type.

S’applique à

GetAttributesForParameter(ParameterInfo, Type)

Source:
ModelAttributes.cs

Obtient les attributs pour le donné parameterInfo avec le spécifié modelType.

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::ModelAttributes ^ GetAttributesForParameter(System::Reflection::ParameterInfo ^ parameterInfo, Type ^ modelType);
public static Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes GetAttributesForParameter (System.Reflection.ParameterInfo parameterInfo, Type modelType);
static member GetAttributesForParameter : System.Reflection.ParameterInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelAttributes
Public Shared Function GetAttributesForParameter (parameterInfo As ParameterInfo, modelType As Type) As ModelAttributes

Paramètres

parameterInfo
ParameterInfo

ParameterInfo pour lequel les attributs doivent être résolus.

modelType
Type

Type de modèle.

Retours

Une ModelAttributes instance avec les attributs du paramètre et de son Type.

S’applique à