HtmlContentBuilderExtensions.AppendFormat Method
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.
Overloads
AppendFormat(IHtmlContentBuilder, String, Object[]) |
Appends the specified |
AppendFormat(IHtmlContentBuilder, IFormatProvider, String, Object[]) |
Appends the specified |
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);
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
- builder
- IHtmlContentBuilder
The IHtmlContentBuilder.
- 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
A reference to this instance after the append operation has completed.
Applies to
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);
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
- builder
- IHtmlContentBuilder
The IHtmlContentBuilder.
- 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
A reference to this instance after the append operation has completed.