Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MvcHtmlString Class
Collapse the table of content
Expand the table of content

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)

public ref class MvcHtmlString sealed : public HtmlString

The MvcHtmlString type exposes the following members.

Public methodMvcHtmlStringInitializes a new instance of the MvcHtmlString class.

Public methodStatic memberCreateCreates an HTML-encoded string using the specified text value.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberIsNullOrEmptyDetermines whether the specified string contains content or is either nullptr or empty.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToHtmlString (Inherited from HtmlString.)
Public methodToString (Inherited from HtmlString.)

Public fieldStatic memberEmptyContains an empty HTML string.

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