DefaultModelMetadataProvider.GetMetadataForConstructor 方法

定义

提供描述构造函数的元数据。

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

参数

constructorInfo
ConstructorInfo
modelType
Type

声明构造函数的类型。

返回

描述 ModelMetadataconstructor实例。

适用于