ModelMetadataProvider.GetMetadataForConstructor(ConstructorInfo, Type) Metodo

Definizione

Fornisce metadati che descrivono un costruttore.

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

Parametri

constructor
ConstructorInfo

Oggetto ConstructorInfo.

modelType
Type

Tipo che dichiara il costruttore.

Restituisce

ModelMetadata Istanza che descrive .constructor

Si applica a