MvcHtmlString MvcHtmlString 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
MvcHtmlStringMvcHtmlStringMvcHtmlString

Constructors

MvcHtmlString(String) MvcHtmlString(String) MvcHtmlString(String)

Initializes a new instance of the MvcHtmlString class.

Fields

Empty Empty Empty

Contains an empty HTML string.

Methods

Create(String) Create(String) Create(String)

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

IsNullOrEmpty(MvcHtmlString) IsNullOrEmpty(MvcHtmlString) IsNullOrEmpty(MvcHtmlString)

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

Applies to