InputTagHelper.Format 属性

定义

格式字符串 (查看 https://msdn.microsoft.com/en-us/library/txafckwd.aspx 用于设置结果格式 For) 。 将生成的“value”属性设置为该格式化字符串。

public:
 property System::String ^ Format { System::String ^ get(); void set(System::String ^ value); };
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeName("asp-format")]
public string Format { get; set; }
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeName("asp-format")>]
member this.Format : string with get, set
Public Property Format As String

属性值

属性

注解

如果提供的 (看到 InputTypeName) 或计算的“type”属性值为 checkboxpasswordradio,则不使用 。 也就是说, Format 在调用 GenerateTextBox(ViewContext, ModelExplorer, String, Object, String, Object)时使用 。

适用于