Compartir a través de


HeaderDictionaryExtensions.SetCommaSeparatedValues Método

Definición

Comillas cualquier valor que contenga comas y, a continuación, una coma combina todos los valores.

public:
[System::Runtime::CompilerServices::Extension]
 static void SetCommaSeparatedValues(Microsoft::AspNetCore::Http::IHeaderDictionary ^ headers, System::String ^ key, ... cli::array <System::String ^> ^ values);
public static void SetCommaSeparatedValues (this Microsoft.AspNetCore.Http.IHeaderDictionary headers, string key, params string[] values);
static member SetCommaSeparatedValues : Microsoft.AspNetCore.Http.IHeaderDictionary * string * string[] -> unit
<Extension()>
Public Sub SetCommaSeparatedValues (headers As IHeaderDictionary, key As String, ParamArray values As String())

Parámetros

headers
IHeaderDictionary

Objeto IHeaderDictionary que se va a usar.

key
String

Nombre del encabezado.

values
String[]

Valores del encabezado.

Se aplica a