HeaderDictionaryExtensions.GetCommaSeparatedValues 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.
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.