C# Класс Microsoft.AspNetCore.Html.HtmlContentBuilderExtensions

Extension methods for IHtmlContentBuilder.
Показать файл Открыть проект

Открытые методы

Метод Описание
AppendFormat ( this builder, IFormatProvider formatProvider, string format ) : IHtmlContentBuilder

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 ( this builder, string format ) : IHtmlContentBuilder

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 ( this builder, string encoded ) : IHtmlContentBuilder

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

AppendLine ( this builder ) : IHtmlContentBuilder

Appends an Environment.NewLine.

AppendLine ( this builder, IHtmlContent content ) : IHtmlContentBuilder

Appends an Environment.NewLine after appending the IHtmlContent value.

AppendLine ( this builder, string unencoded ) : IHtmlContentBuilder

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

SetContent ( this builder, string unencoded ) : IHtmlContentBuilder

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 ( this builder, IHtmlContent content ) : IHtmlContentBuilder

Sets the content to the IHtmlContent value.

SetHtmlContent ( this builder, string encoded ) : IHtmlContentBuilder

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

Описание методов

AppendFormat() публичный статический Метод

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.
public static AppendFormat ( this builder, IFormatProvider formatProvider, string format ) : IHtmlContentBuilder
builder this The .
formatProvider IFormatProvider An object that supplies culture-specific formatting information.
format string /// The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx). /// The format string is assumed to be HTML encoded as-provided, and no further encoding will be performed. ///
Результат IHtmlContentBuilder

AppendFormat() публичный статический Метод

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.
public static AppendFormat ( this builder, string format ) : IHtmlContentBuilder
builder this The .
format string /// The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx). /// The format string is assumed to be HTML encoded as-provided, and no further encoding will be performed. ///
Результат IHtmlContentBuilder

AppendHtmlLine() публичный статический Метод

Appends an Environment.NewLine after appending the string value. The value is treated as HTML encoded as-provided, and no further encoding will be performed.
public static AppendHtmlLine ( this builder, string encoded ) : IHtmlContentBuilder
builder this The .
encoded string The HTML encoded to append.
Результат IHtmlContentBuilder

AppendLine() публичный статический Метод

Appends an Environment.NewLine.
public static AppendLine ( this builder ) : IHtmlContentBuilder
builder this The .
Результат IHtmlContentBuilder

AppendLine() публичный статический Метод

Appends an Environment.NewLine after appending the IHtmlContent value.
public static AppendLine ( this builder, IHtmlContent content ) : IHtmlContentBuilder
builder this The .
content IHtmlContent The to append.
Результат IHtmlContentBuilder

AppendLine() публичный статический Метод

Appends an Environment.NewLine after appending the string value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output.
public static AppendLine ( this builder, string unencoded ) : IHtmlContentBuilder
builder this The .
unencoded string The to append.
Результат IHtmlContentBuilder

SetContent() публичный статический Метод

Sets the content to the string value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output.
public static SetContent ( this builder, string unencoded ) : IHtmlContentBuilder
builder this The .
unencoded string The value that replaces the content.
Результат IHtmlContentBuilder

SetHtmlContent() публичный статический Метод

Sets the content to the IHtmlContent value.
public static SetHtmlContent ( this builder, IHtmlContent content ) : IHtmlContentBuilder
builder this The .
content IHtmlContent The value that replaces the content.
Результат IHtmlContentBuilder

SetHtmlContent() публичный статический Метод

Sets the content to the string value. The value is treated as HTML encoded as-provided, and no further encoding will be performed.
public static SetHtmlContent ( this builder, string encoded ) : IHtmlContentBuilder
builder this The .
encoded string The HTML encoded that replaces the content.
Результат IHtmlContentBuilder