HeaderDictionaryExtensions.GetCommaSeparatedValues Metoda

Definice

Získejte přidružené hodnoty z kolekce oddělené do jednotlivých hodnot. Hodnoty uvozovek nebudou rozděleny a uvozovky budou odebrány.

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()

Parametry

headers
IHeaderDictionary

Použití IHeaderDictionary .

key
String

Název záhlaví.

Návraty

String[]

přidružené hodnoty z kolekce oddělené do jednotlivých hodnot nebo StringValues.Empty, pokud klíč neexistuje.

Platí pro