Partilhar via


ModelMetadataIdentity.ForConstructor(ConstructorInfo, Type) Método

Definição

Cria um ModelMetadataIdentity para o parâmetro fornecido com o tipo de modelo especificado.

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

Parâmetros

modelType
Type

O tipo de modelo.

Retornos

Uma ModelMetadataIdentity.

Aplica-se a