Udostępnij za pośrednictwem


InputTagHelper.GetInputType(ModelExplorer, String) Metoda

Definicja

<Pobiera wartość atrybutu "type" elementu wejściowego> na podstawie podanej modelExplorer wartości lub 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

Parametry

modelExplorer
ModelExplorer

Do ModelExplorer użycia.

inputTypeHint
String

Gdy ta metoda zwraca, zawiera ciąg, często nazwę klasy bazowej ModelType , używaną do określania wartości zwracanej tej metody.

Zwraca

Wartość atrybutu "type" elementu wejściowego<>.

Dotyczy