HtmlHelperOptions Class¶
Provides programmatic configuration for the HTML helpers and Microsoft.AspNetCore.Mvc.Rendering.ViewContext
.
- Namespace
Microsoft.AspNetCore.Mvc.ViewFeatures
- Assemblies
- Microsoft.AspNetCore.Mvc.ViewFeatures
Syntax¶
public class HtmlHelperOptions
-
class
Microsoft.AspNetCore.Mvc.ViewFeatures.
HtmlHelperOptions
Properties¶
-
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelperOptions.
ClientValidationEnabled
¶ Gets or sets a value that indicates whether client-side validation is enabled.
Return type: System.Boolean public bool ClientValidationEnabled { get; set; }
-
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelperOptions.
Html5DateRenderingMode
¶ Gets or sets the
Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode.#ctor
value.Return type: Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode public Html5DateRenderingMode Html5DateRenderingMode { get; set; }
-
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelperOptions.
IdAttributeDotReplacement
¶ Gets or sets the
System.String
that replaces periods in the ID attribute of an element.Return type: System.String public string IdAttributeDotReplacement { get; set; }
-
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelperOptions.
ValidationMessageElement
¶ Gets or sets the element name used to wrap a top-level message generated by
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper.ValidationMessage(System.String,System.String,System.Object,System.String)
and other overloads.Return type: System.String public string ValidationMessageElement { get; set; }
-
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelperOptions.
ValidationSummaryMessageElement
¶ Gets or sets the element name used to wrap a top-level message generated by
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper.ValidationSummary(System.Boolean,System.String,System.Object,System.String)
and other overloads.Return type: System.String public string ValidationSummaryMessageElement { get; set; }
-