Compartilhar via


DefaultModelMetadataProvider.GetMetadataForConstructor Método

Definição

Fornece metadados que descrevem um construtor.

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

Parâmetros

constructorInfo
ConstructorInfo
modelType
Type

O tipo que declara o construtor.

Retornos

Uma ModelMetadata instância que descreve o constructor.

Aplica-se a