DefaultTagHelperContent Class

Definition

Default concrete TagHelperContent.

public ref class DefaultTagHelperContent : Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent
public class DefaultTagHelperContent : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent
type DefaultTagHelperContent = class
    inherit TagHelperContent
Public Class DefaultTagHelperContent
Inherits TagHelperContent
Inheritance
DefaultTagHelperContent

Constructors

DefaultTagHelperContent()

Properties

IsEmptyOrWhiteSpace

Gets a value indicating whether the content is empty or whitespace.

IsModified

Gets a value indicating whether the content was modified.

Methods

Append(String)

Appends unencoded to the existing content.

AppendFormat(IFormatProvider, String, Object[])

Appends the specified format to the existing content with information from the provider after replacing each format item with the HTML encoded String representation of the corresponding item in the args array.

(Inherited from TagHelperContent)
AppendFormat(String, Object[])

Appends the specified format to the existing content after replacing each format item with the HTML encoded String representation of the corresponding item in the args array.

(Inherited from TagHelperContent)
AppendHtml(IHtmlContent)

Appends htmlContent to the existing content.

AppendHtml(String)

Appends encoded to the existing content. encoded is assumed to be an HTML encoded String and no further encoding will be performed.

Clear()

Clears the content.

CopyTo(IHtmlContentBuilder) System.Object.CopyTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder)
GetContent()

Gets the content.

GetContent(HtmlEncoder)

Gets the content.

MoveTo(IHtmlContentBuilder) System.Object.MoveTo(Microsoft.AspNetCore.Html.IHtmlContentBuilder)
Reinitialize()

Clears the TagHelperContent, so it can be reused.

SetContent(String)

Sets the content.

(Inherited from TagHelperContent)
SetHtmlContent(IHtmlContent)

Sets the content.

(Inherited from TagHelperContent)
SetHtmlContent(String)

Sets the content.

(Inherited from TagHelperContent)
WriteTo(TextWriter, HtmlEncoder) System.Object.WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Explicit Interface Implementations

IHtmlContentBuilder.Append(String)

Appends a String value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output.

(Inherited from TagHelperContent)
IHtmlContentBuilder.AppendHtml(IHtmlContent)

Appends an IHtmlContent instance.

(Inherited from TagHelperContent)
IHtmlContentBuilder.AppendHtml(String)

Appends an HTML encoded String value. The value is treated as HTML encoded as-provided, and no further encoding will be performed.

(Inherited from TagHelperContent)
IHtmlContentBuilder.Clear()

Clears the content.

(Inherited from TagHelperContent)

Extension Methods

AppendFormat(IHtmlContentBuilder, IFormatProvider, String, Object[])

Appends the specified format to the existing content with information from the formatProvider after replacing each format item with the HTML encoded String representation of the corresponding item in the args array.

AppendFormat(IHtmlContentBuilder, String, Object[])

Appends the specified format to the existing content after replacing each format item with the HTML encoded String representation of the corresponding item in the args array.

AppendHtmlLine(IHtmlContentBuilder, String)

Appends an NewLine after appending the String value. The value is treated as HTML encoded as-provided, and no further encoding will be performed.

AppendLine(IHtmlContentBuilder)

Appends an NewLine.

AppendLine(IHtmlContentBuilder, IHtmlContent)

Appends an NewLine after appending the IHtmlContent value.

AppendLine(IHtmlContentBuilder, String)

Appends an NewLine after appending the String value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output.

SetContent(IHtmlContentBuilder, String)

Sets the content to the String value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output.

SetHtmlContent(IHtmlContentBuilder, IHtmlContent)

Sets the content to the IHtmlContent value.

SetHtmlContent(IHtmlContentBuilder, String)

Sets the content to the String value. The value is treated as HTML encoded as-provided, and no further encoding will be performed.

Applies to