HtmlContentBuilderExtensions.AppendFormat 方法

定义

重载

AppendFormat(IHtmlContentBuilder, String, Object[])

将每个格式项替换为数组中args相应项的 HTML 编码String表示形式后,将指定的 format 追加到现有内容。

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

在将每个格式项替换为数组中相应项的 HTML 编码String表示形式后,将指定的 format 追加到现有内容中args的信息formatProvider

AppendFormat(IHtmlContentBuilder, String, Object[])

Source:
HtmlContentBuilderExtensions.cs
Source:
HtmlContentBuilderExtensions.cs
Source:
HtmlContentBuilderExtensions.cs

将每个格式项替换为数组中args相应项的 HTML 编码String表示形式后,将指定的 format 追加到现有内容。

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

参数

format
String

复合格式 String (请参阅 http://msdn.microsoft.com/en-us/library/txafckwd.aspx) 。 假定格式字符串是按提供的 HTML 编码,并且不会执行进一步的编码。

args
Object[]

要设置格式的对象数组。 数组中的每个元素都将格式化,然后进行 HTML 编码。

返回

完成追加操作后对此实例的引用。

适用于

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

Source:
HtmlContentBuilderExtensions.cs
Source:
HtmlContentBuilderExtensions.cs
Source:
HtmlContentBuilderExtensions.cs

在将每个格式项替换为数组中相应项的 HTML 编码String表示形式后,将指定的 format 追加到现有内容中args的信息formatProvider

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

参数

formatProvider
IFormatProvider

一个提供区域性特定的格式设置信息的对象。

format
String

复合格式 String (请参阅 http://msdn.microsoft.com/en-us/library/txafckwd.aspx) 。 假定格式字符串是按提供的 HTML 编码,并且不会执行进一步的编码。

args
Object[]

要设置格式的对象数组。 数组中的每个元素都将格式化,然后进行 HTML 编码。

返回

完成追加操作后对此实例的引用。

适用于