Share via


ModelMetadataProvider.GetMetadataForParameter Method

Definition

Overloads

GetMetadataForParameter(ParameterInfo)

Supplies metadata describing a parameter.

GetMetadataForParameter(ParameterInfo, Type)

Supplies metadata describing a parameter.

GetMetadataForParameter(ParameterInfo)

Source:
ModelMetadataProvider.cs
Source:
ModelMetadataProvider.cs

Supplies metadata describing a parameter.

public:
 abstract Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ GetMetadataForParameter(System::Reflection::ParameterInfo ^ parameter);
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForParameter (System.Reflection.ParameterInfo parameter);
abstract member GetMetadataForParameter : System.Reflection.ParameterInfo -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
Public MustOverride Function GetMetadataForParameter (parameter As ParameterInfo) As ModelMetadata

Parameters

parameter
ParameterInfo

The ParameterInfo.

Returns

A ModelMetadata instance describing the parameter.

Applies to

GetMetadataForParameter(ParameterInfo, Type)

Source:
ModelMetadataProvider.cs
Source:
ModelMetadataProvider.cs

Supplies metadata describing a parameter.

public:
 virtual Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ GetMetadataForParameter(System::Reflection::ParameterInfo ^ parameter, Type ^ modelType);
public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForParameter (System.Reflection.ParameterInfo parameter, Type modelType);
abstract member GetMetadataForParameter : System.Reflection.ParameterInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
override this.GetMetadataForParameter : System.Reflection.ParameterInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
Public Overridable Function GetMetadataForParameter (parameter As ParameterInfo, modelType As Type) As ModelMetadata

Parameters

modelType
Type

The actual model type.

Returns

A ModelMetadata instance describing the parameter.

Applies to