Freigeben über


TagBuilder.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

Use this method to render the HTML tag.

See Also

Reference

TagBuilder Class

ToString Overload

System.Web.Mvc Namespace