InputTagHelper.Format Propriété

Définition

Chaîne de format (voir https://msdn.microsoft.com/en-us/library/txafckwd.aspx) utilisée pour mettre en forme le For résultat. Définit l’attribut « value » généré sur cette chaîne mise en forme.

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

Valeur de propriété

Attributs

Remarques

Non utilisé si la valeur de l’attribut « type » fournie (voir InputTypeName) ou calculée est checkbox, passwordou radio. Autrement dit, Format est utilisé lors de l’appel GenerateTextBox(ViewContext, ModelExplorer, String, Object, String, Object)de .

S’applique à