TagBuilder Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TagBuilder(TagBuilder) |
Creates a copy of the HTML tag passed as |
TagBuilder(String) |
Creates a new HTML tag that has the specified tag name. |
TagBuilder(TagBuilder)
- Source:
- TagBuilder.cs
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
- 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.