Udostępnij za pośrednictwem


InputTagHelper.Format Właściwość

Definicja

Ciąg formatu (patrz https://msdn.microsoft.com/en-us/library/txafckwd.aspx) używany do formatowania For wyniku. Ustawia wygenerowany atrybut "value" na ten sformatowany ciąg.

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

Wartość właściwości

Atrybuty

Uwagi

Nie jest używany, jeśli podana wartość atrybutu (patrz InputTypeName) lub obliczona wartość atrybutu "type" to checkbox, passwordlub radio. Oznacza to, Format że jest używany podczas wywoływania GenerateTextBox(ViewContext, ModelExplorer, String, Object, String, Object)metody .

Dotyczy