Share via


TagBuilder.ToString Method

Include Protected Members
Include Inherited Members

Returns a string that represents the current object.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method ToString() Returns a string that represents the current object. (Overrides Object.ToString().)
Public method ToString(TagRenderMode) Returns a string that represents the current object by using the specified tag-render mode.

Top

Remarks

Use this method to render the HTML tag.

See Also

Reference

TagBuilder Class

System.Web.Mvc Namespace