MvcHtmlString Class

 

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

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  System.Web.HtmlString
    System.Web.Mvc.MvcHtmlString

Syntax

public sealed class MvcHtmlString : HtmlString
public ref class MvcHtmlString sealed : HtmlString
[<Sealed>]
type MvcHtmlString = 
    class
        inherit HtmlString
    end
Public NotInheritable Class MvcHtmlString
    Inherits HtmlString

Constructors

Name Description
System_CAPS_pubmethod MvcHtmlString(String)

Initializes a new instance of the MvcHtmlString class.

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static Create(String)

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

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static IsNullOrEmpty(MvcHtmlString)

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

System_CAPS_pubmethod ToHtmlString()

(Inherited from HtmlString.)

System_CAPS_pubmethod ToString()

(Inherited from HtmlString.)

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static Empty

Contains an empty HTML string.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Mvc Namespace

Return to top