IHtmlContentBuilder Interface¶
A builder for HTML content.
- Namespace
Microsoft.AspNetCore.Html
- Assemblies
- Microsoft.AspNetCore.Html.Abstractions
Syntax¶
public interface IHtmlContentBuilder : IHtmlContentContainer, IHtmlContent
-
interface
Microsoft.AspNetCore.Html.
IHtmlContentBuilder
Methods¶
-
Append
(System.String)¶ Appends a
System.String
value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output.Arguments: unencoded (System.String) – The System.String
to append.Return type: Microsoft.AspNetCore.Html.IHtmlContentBuilder Returns: The Microsoft.AspNetCore.Html.IHtmlContentBuilder
.IHtmlContentBuilder Append(string unencoded)
-
AppendHtml
(Microsoft.AspNetCore.Html.IHtmlContent)¶ Appends an
Microsoft.AspNetCore.Html.IHtmlContent
instance.Arguments: content (Microsoft.AspNetCore.Html.IHtmlContent) – The Microsoft.AspNetCore.Html.IHtmlContent
to append.Return type: Microsoft.AspNetCore.Html.IHtmlContentBuilder Returns: The Microsoft.AspNetCore.Html.IHtmlContentBuilder
.IHtmlContentBuilder AppendHtml(IHtmlContent content)
-
AppendHtml
(System.String) Appends an HTML encoded
System.String
value. The value is treated as HTML encoded as-provided, and no further encoding will be performed.Arguments: encoded (System.String) – The HTML encoded System.String
to append.Return type: Microsoft.AspNetCore.Html.IHtmlContentBuilder Returns: The Microsoft.AspNetCore.Html.IHtmlContentBuilder
.IHtmlContentBuilder AppendHtml(string encoded)
-
Clear
()¶ Clears the content.
Return type: Microsoft.AspNetCore.Html.IHtmlContentBuilder Returns: The Microsoft.AspNetCore.Html.IHtmlContentBuilder
.IHtmlContentBuilder Clear()
-