次の方法で共有


MvcHtmlString.ToString Method

Returns a string that represents the current object.

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

Syntax

'Declaration
Public Overrides Function ToString As String
public override string ToString()
public:
virtual String^ ToString() override

Return Value

Type: System.String
A string that represents the current object.

Remarks

This method returns a string that is culture-sensitive. The string is also HTML encoded.

The ToHtmlString and ToString methods return the same value.

See Also

Reference

MvcHtmlString Class

System.Web.Mvc Namespace