TagHelperContent.AppendFormat 方法

定义

重载

AppendFormat(String, Object[])

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

AppendFormat(IFormatProvider, String, Object[])

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

AppendFormat(String, Object[])

Source:
TagHelperContent.cs
Source:
TagHelperContent.cs
Source:
TagHelperContent.cs

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

public:
 Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent ^ AppendFormat(System::String ^ format, ... cli::array <System::Object ^> ^ args);
public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent AppendFormat (string format, params object[] args);
member this.AppendFormat : string * obj[] -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent
Public Function AppendFormat (format As String, ParamArray args As Object()) As TagHelperContent

参数

args
Object[]

要设置格式的对象数组。

返回

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

适用于

AppendFormat(IFormatProvider, String, Object[])

Source:
TagHelperContent.cs
Source:
TagHelperContent.cs
Source:
TagHelperContent.cs

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

public:
 Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent ^ AppendFormat(IFormatProvider ^ provider, System::String ^ format, ... cli::array <System::Object ^> ^ args);
public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent AppendFormat (IFormatProvider provider, string format, params object[] args);
member this.AppendFormat : IFormatProvider * string * obj[] -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent
Public Function AppendFormat (provider As IFormatProvider, format As String, ParamArray args As Object()) As TagHelperContent

参数

provider
IFormatProvider

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

args
Object[]

要设置格式的对象数组。

返回

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

适用于