共用方式為


HeaderDictionaryExtensions.SetCommaSeparatedValues 方法

定義

以包含逗號的任何值加上引號,然後以逗號聯結所有值。

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

參數

headers
IHeaderDictionary

要使用的 IHeaderDictionary

key
String

標頭名稱。

values
String[]

標頭值。

適用於