InputTagHelper.GetInputType(ModelExplorer, String) 方法

定义

<根据给定modelExplorer的 或 InputType获取输入>元素的“type”属性值。

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

参数

modelExplorer
ModelExplorer

要使用的 ModelExplorer

inputTypeHint
String

此方法返回时,包含字符串(通常是基类的名称 ModelType ),用于确定此方法的返回值。

返回

输入<>元素的“type”属性值。

适用于