Export (0) Print
Expand All

MvcHtmlString Class

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

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

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

public sealed class MvcHtmlString : HtmlString

The MvcHtmlString type exposes the following members.

  NameDescription
Public methodMvcHtmlStringInitializes a new instance of the MvcHtmlString class.
Top

  NameDescription
Public methodStatic memberCreateCreates an HTML-encoded string using the specified text value.
Public methodEquals (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 null or empty.
Public methodToHtmlString (Inherited from HtmlString.)
Public methodToString (Inherited from HtmlString.)
Top

  NameDescription
Public fieldStatic memberEmptyContains an empty HTML string.
Top

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