TagBuilder.ToString Method (TagRenderMode)

Visual Studio 2010

Returns a string that represents the current object by using the specified tag-render mode.

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

public string ToString(
	TagRenderMode renderMode
)

Parameters

renderMode
Type: System.Web.Mvc.TagRenderMode
The tag-render mode.

Return Value

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

Use this method to render the HTML tag. Using the renderMode parameter, you can render a start tag, an end tag, or a self-closing tag.

Community Additions

ADD
Show: