DefaultTagHelperContent Class
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.
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
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 |
AppendFormat(IFormatProvider, String, Object[]) |
Appends the specified |
AppendFormat(String, Object[]) |
Appends the specified |
AppendHtml(IHtmlContent) |
Appends |
AppendHtml(String) |
Appends |
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 |
AppendFormat(IHtmlContentBuilder, String, Object[]) |
Appends the specified |
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. |