HtmlHelperOptions Class

Summary

Provides programmatic configuration for the HTML helpers and [Microsoft.AspNet.Mvc.ViewContext](Microsoft.AspNet.Mvc.ViewContext.yml).

Syntax

public class HtmlHelperOptions

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Rendering.HtmlHelperOptions

Properties

ClientValidationEnabled()

Gets or sets a value that indicates whether client-side validation is enabled.

Return type:System.Boolean
public bool ClientValidationEnabled { get; set; }
Html5DateRenderingMode()

Gets or sets the [Microsoft.AspNet.Mvc.Rendering.Html5DateRenderingMode.#ctor]() value.

Return type:Microsoft.AspNet.Mvc.Rendering.Html5DateRenderingMode
public Html5DateRenderingMode Html5DateRenderingMode { get; set; }
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; }
ValidationMessageElement()

Gets or sets the element name used to wrap a top-level message generated by [Microsoft.AspNet.Mvc.Rendering.IHtmlHelper.ValidationMessage(System.String,System.String,System.Object,System.String)](Microsoft.AspNet.Mvc.Rendering.IHtmlHelper.yml) and other overloads.

Return type:System.String
public string ValidationMessageElement { get; set; }
ValidationSummaryMessageElement()

Gets or sets the element name used to wrap a top-level message generated by [Microsoft.AspNet.Mvc.Rendering.IHtmlHelper.ValidationSummary(System.Boolean,System.String,System.Object,System.String)](Microsoft.AspNet.Mvc.Rendering.IHtmlHelper.yml) and other overloads.

Return type:System.String
public string ValidationSummaryMessageElement { get; set; }