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.Stringvalue. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output.Arguments: unencoded (System.String) – The System.Stringto 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.IHtmlContentinstance.Arguments: content (Microsoft.AspNetCore.Html.IHtmlContent) – The Microsoft.AspNetCore.Html.IHtmlContentto 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.Stringvalue. The value is treated as HTML encoded as-provided, and no further encoding will be performed.Arguments: encoded (System.String) – The HTML encoded System.Stringto 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()
-