Share via


DefaultModelMetadataProvider.GetMetadataForConstructor Method

Definition

Supplies metadata describing a constructor.

public:
 override Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ GetMetadataForConstructor(System::Reflection::ConstructorInfo ^ constructorInfo, Type ^ modelType);
public override Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForConstructor (System.Reflection.ConstructorInfo constructorInfo, Type modelType);
override this.GetMetadataForConstructor : System.Reflection.ConstructorInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
Public Overrides Function GetMetadataForConstructor (constructorInfo As ConstructorInfo, modelType As Type) As ModelMetadata

Parameters

constructorInfo
ConstructorInfo
modelType
Type

The type declaring the constructor.

Returns

A ModelMetadata instance describing the constructor.

Applies to