ModelMetadataIdentity.ForConstructor(ConstructorInfo, Type) 方法

定义

ModelMetadataIdentity为具有指定模型类型的所提供的参数创建 。

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelMetadataIdentity ForConstructor(System::Reflection::ConstructorInfo ^ constructor, Type ^ modelType);
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForConstructor (System.Reflection.ConstructorInfo constructor, Type modelType);
static member ForConstructor : System.Reflection.ConstructorInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
Public Shared Function ForConstructor (constructor As ConstructorInfo, modelType As Type) As ModelMetadataIdentity

参数

modelType
Type

模型类型。

返回

一个 ModelMetadataIdentity

适用于