Freigeben über


MvcHtmlString.ToHtmlString Method

Returns an HTML-encoded string that represents the current object.

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

Syntax

'Declaration
Public Function ToHtmlString As String
public string ToHtmlString()
public:
String^ ToHtmlString()

Return Value

Type: System.String
An HTML-encoded string that represents the current object.

Remarks

The ToHtmlString and ToString methods return the same value.

See Also

Reference

MvcHtmlString Class

System.Web.Mvc Namespace