HeaderDictionaryExtensions.GetCommaSeparatedValues Method

Definition

Get the associated values from the collection separated into individual values. Quoted values will not be split, and the quotes will be removed.

C#
public static string[] GetCommaSeparatedValues (this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key);

Parameters

headers
IHeaderDictionary

The IHeaderDictionary to use.

key
String

The header name.

Returns

String[]

the associated values from the collection separated into individual values, or StringValues.Empty if the key is not present.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0