InputTagHelper.GetInputType(ModelExplorer, String) Method

Definition

Gets an <input> element's "type" attribute value based on the given modelExplorer or 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

Parameters

modelExplorer
ModelExplorer

The ModelExplorer to use.

inputTypeHint
String

When this method returns, contains the string, often the name of a ModelType base class, used to determine this method's return value.

Returns

String

An <input> element's "type" attribute value.

Applies to