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

标头值。

适用于