HeaderDictionaryExtensions.AppendCommaSeparatedValues Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Quotes any values containing commas, and then comma joins all of the values with any existing values.
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())
Parameters
- headers
- IHeaderDictionary
The IHeaderDictionary to use.
- key
- String
The header name.
- values
- String[]
The header values.