Dela via


DefaultModelMetadataProvider.GetMetadataForParameter Method

Definition

Overloads

GetMetadataForParameter(ParameterInfo)

Supplies metadata describing a parameter.

GetMetadataForParameter(ParameterInfo, Type)

Supplies metadata describing a parameter.

GetMetadataForParameter(ParameterInfo)

Source:
DefaultModelMetadataProvider.cs
Source:
DefaultModelMetadataProvider.cs
Source:
DefaultModelMetadataProvider.cs

Supplies metadata describing a parameter.

public:
 override Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ GetMetadataForParameter(System::Reflection::ParameterInfo ^ parameter);
public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForParameter (System.Reflection.ParameterInfo parameter);
override this.GetMetadataForParameter : System.Reflection.ParameterInfo -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
Public Overrides 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:
DefaultModelMetadataProvider.cs
Source:
DefaultModelMetadataProvider.cs

Supplies metadata describing a parameter.

public:
 override Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ GetMetadataForParameter(System::Reflection::ParameterInfo ^ parameter, Type ^ modelType);
public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForParameter (System.Reflection.ParameterInfo parameter, Type modelType);
override this.GetMetadataForParameter : System.Reflection.ParameterInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
Public Overrides 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