Partager via


InputTagHelper.GetInputType(ModelExplorer, String) Méthode

Définition

Obtient la valeur de l’attribut « type » d’un <élément d’entrée> en fonction du donné modelExplorer ou InputType.

protected:
 System::String ^ GetInputType(Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, [Runtime::InteropServices::Out] System::String ^ % inputTypeHint);
protected string GetInputType (Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, out string inputTypeHint);
member this.GetInputType : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string -> string
Protected Function GetInputType (modelExplorer As ModelExplorer, ByRef inputTypeHint As String) As String

Paramètres

modelExplorer
ModelExplorer

ModelExplorer à utiliser.

inputTypeHint
String

Lorsque cette méthode est retournée, contient la chaîne, souvent le nom d’une ModelType classe de base, utilisée pour déterminer la valeur de retour de cette méthode.

Retours

Valeur d’attribut « type » d’un <élément d’entrée> .

S’applique à