HtmlContentBuilderExtensions.AppendFormat Method

Definition

Overloads

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.

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.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContentBuilder ^ AppendFormat(Microsoft::AspNetCore::Html::IHtmlContentBuilder ^ builder, System::String ^ format, ... cli::array <System::Object ^> ^ args);
public static Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendFormat (this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, string format, params object[] args);
static member AppendFormat : Microsoft.AspNetCore.Html.IHtmlContentBuilder * string * obj[] -> Microsoft.AspNetCore.Html.IHtmlContentBuilder
<Extension()>
Public Function AppendFormat (builder As IHtmlContentBuilder, format As String, ParamArray args As Object()) As IHtmlContentBuilder

Parameters

format
String

The composite format String (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.

args
Object[]

The object array to format. Each element in the array will be formatted and then HTML encoded.

Returns

IHtmlContentBuilder

A reference to this instance after the append operation has completed.

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.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContentBuilder ^ AppendFormat(Microsoft::AspNetCore::Html::IHtmlContentBuilder ^ builder, IFormatProvider ^ formatProvider, System::String ^ format, ... cli::array <System::Object ^> ^ args);
public static Microsoft.AspNetCore.Html.IHtmlContentBuilder AppendFormat (this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, IFormatProvider formatProvider, string format, params object[] args);
static member AppendFormat : Microsoft.AspNetCore.Html.IHtmlContentBuilder * IFormatProvider * string * obj[] -> Microsoft.AspNetCore.Html.IHtmlContentBuilder
<Extension()>
Public Function AppendFormat (builder As IHtmlContentBuilder, formatProvider As IFormatProvider, format As String, ParamArray args As Object()) As IHtmlContentBuilder

Parameters

formatProvider
IFormatProvider

An object that supplies culture-specific formatting information.

format
String

The composite format String (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.

args
Object[]

The object array to format. Each element in the array will be formatted and then HTML encoded.

Returns

IHtmlContentBuilder

A reference to this instance after the append operation has completed.

Applies to