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[]

標頭值。

適用於