InputTagHelper.Format Property

Definition

The format string (see https://msdn.microsoft.com/en-us/library/txafckwd.aspx) used to format the For result. Sets the generated "value" attribute to that formatted string.

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

Property Value

Attributes

Remarks

Not used if the provided (see InputTypeName) or calculated "type" attribute value is checkbox, password, or radio. That is, Format is used when calling GenerateTextBox(ViewContext, ModelExplorer, String, Object, String, Object).

Applies to