InputTagHelper.GetInputType(ModelExplorer, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
An <input> element's "type" attribute value.