DefaultModelMetadataProvider.GetMetadataForParameter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetMetadataForParameter(ParameterInfo) |
Supplies metadata describing a parameter. |
GetMetadataForParameter(ParameterInfo, Type) |
Supplies metadata describing a parameter. |
GetMetadataForParameter(ParameterInfo)
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)
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
- parameter
- ParameterInfo
The ParameterInfo
- modelType
- Type
The actual model type.
Returns
A ModelMetadata instance describing the parameter
.