共用方式為


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

適用於