TagBuilder(String) Constructor

Definition

Creates a new tag that has the specified tag name.

public TagBuilder (string tagName);
new System.Web.Mvc.TagBuilder : string -> System.Web.Mvc.TagBuilder
Public Sub New (tagName As String)

Parameters

tagName
String

The tag name without the "<", "/", or ">" delimiters.

Exceptions

tagName is null or empty.

Applies to