TagBuilder Constructors

Definition

Overloads

TagBuilder(TagBuilder)

Creates a copy of the HTML tag passed as tagBuilder.

TagBuilder(String)

Creates a new HTML tag that has the specified tag name.

TagBuilder(TagBuilder)

Creates a copy of the HTML tag passed as tagBuilder.

public:
 TagBuilder(Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ tagBuilder);
public TagBuilder (Microsoft.AspNetCore.Mvc.Rendering.TagBuilder tagBuilder);
new Microsoft.AspNetCore.Mvc.Rendering.TagBuilder : Microsoft.AspNetCore.Mvc.Rendering.TagBuilder -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Public Sub New (tagBuilder As TagBuilder)

Parameters

tagBuilder
TagBuilder

Tag to copy.

Applies to

TagBuilder(String)

Source:
TagBuilder.cs
Source:
TagBuilder.cs

Creates a new HTML tag that has the specified tag name.

public:
 TagBuilder(System::String ^ tagName);
public TagBuilder (string tagName);
new Microsoft.AspNetCore.Mvc.Rendering.TagBuilder : string -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Public Sub New (tagName As String)

Parameters

tagName
String

An HTML tag name.

Applies to