ModelMetadataProvider.GetMetadataForConstructor(ConstructorInfo, Type) 方法

定义

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

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

参数

modelType
Type

声明构造函数的类型。

返回

描述 ModelMetadataconstructor实例。

适用于