Share via


MvcHtmlString Class

Definition

Represents an HTML-encoded string that should not be encoded again.

public sealed class MvcHtmlString : System.Web.HtmlString
type MvcHtmlString = class
    inherit HtmlString
Public NotInheritable Class MvcHtmlString
Inherits HtmlString
Inheritance
MvcHtmlString

Constructors

MvcHtmlString(String)

Initializes a new instance of the MvcHtmlString class.

Fields

Empty

Contains an empty HTML string.

Methods

Create(String)

Creates an HTML-encoded string using the specified text value.

IsNullOrEmpty(MvcHtmlString)

Determines whether the specified string contains content or is either null or empty.

Applies to