HeaderDictionaryExtensions.GetCommaSeparatedValues(IHeaderDictionary, String) 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.

public:
[System::Runtime::CompilerServices::Extension]
 static cli::array <System::String ^> ^ GetCommaSeparatedValues(Microsoft::AspNetCore::Http::IHeaderDictionary ^ headers, System::String ^ key);
public static string[] GetCommaSeparatedValues (this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key);
static member GetCommaSeparatedValues : Microsoft.AspNetCore.Http.IHeaderDictionary * string -> string[]
<Extension()>
Public Function GetCommaSeparatedValues (headers As IHeaderDictionary, key As String) As String()

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