HeaderDictionaryExtensions.AppendCommaSeparatedValues 方法

定义

为包含逗号的任何值加上引号,然后逗号将所有值与任何现有值相联接。

public:
[System::Runtime::CompilerServices::Extension]
 static void AppendCommaSeparatedValues(Microsoft::AspNetCore::Http::IHeaderDictionary ^ headers, System::String ^ key, ... cli::array <System::String ^> ^ values);
public static void AppendCommaSeparatedValues (this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key, params string[] values);
static member AppendCommaSeparatedValues : Microsoft.AspNetCore.Http.IHeaderDictionary * string * string[] -> unit
<Extension()>
Public Sub AppendCommaSeparatedValues (headers As IHeaderDictionary, key As String, ParamArray values As String())

参数

headers
IHeaderDictionary

要使用的 IHeaderDictionary

key
String

标头名称。

values
String[]

标头值。

适用于