ModelMetadataProvider.GetMetadataForConstructor(ConstructorInfo, Type) 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.
Supplies metadata describing a constructor.
public:
virtual Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ GetMetadataForConstructor(System::Reflection::ConstructorInfo ^ constructor, Type ^ modelType);
public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForConstructor (System.Reflection.ConstructorInfo constructor, Type modelType);
abstract member GetMetadataForConstructor : System.Reflection.ConstructorInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
override this.GetMetadataForConstructor : System.Reflection.ConstructorInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
Public Overridable Function GetMetadataForConstructor (constructor As ConstructorInfo, modelType As Type) As ModelMetadata
Parameters
- constructor
- ConstructorInfo
The ConstructorInfo.
- modelType
- Type
The type declaring the constructor.
Returns
A ModelMetadata instance describing the constructor
.