This topic has not yet been rated - Rate this topic

MvcHtmlString Class

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

System.Object
  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.

  Name Description
Public method MvcHtmlString Initializes a new instance of the MvcHtmlString class.
Top
  Name Description
Public method Static member Create Creates an HTML-encoded string using the specified text value.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Static member IsNullOrEmpty Determines whether the specified string contains content or is either null or empty.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToHtmlString (Inherited from HtmlString.)
Public method ToString (Inherited from HtmlString.)
Top
  Name Description
Public field Static member Empty Contains 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.
Did you find this helpful?
(1500 characters remaining)