Compartir a través de


IResponseCookies.Append Método

Definición

Sobrecargas

Append(ReadOnlySpan<KeyValuePair<String,String>>, CookieOptions)

Agregue elementos de la colección especificada como cookies.

Append(String, String)

Agregue una nueva cookie y un valor.

Append(String, String, CookieOptions)

Agregue una nueva cookie.

Append(ReadOnlySpan<KeyValuePair<String,String>>, CookieOptions)

Source:
IResponseCookies.cs

Agregue elementos de la colección especificada como cookies.

public virtual void Append (ReadOnlySpan<System.Collections.Generic.KeyValuePair<string,string>> keyValuePairs, Microsoft.AspNetCore.Http.CookieOptions options);
abstract member Append : ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, string>> * Microsoft.AspNetCore.Http.CookieOptions -> unit
override this.Append : ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, string>> * Microsoft.AspNetCore.Http.CookieOptions -> unit
Public Overridable Sub Append (keyValuePairs As ReadOnlySpan(Of KeyValuePair(Of String, String)), options As CookieOptions)

Parámetros

keyValuePairs
ReadOnlySpan<KeyValuePair<String,String>>

Colecciones de pares clave-valor cuyos elementos se agregarán como cookies.

options
CookieOptions

CookieOptions incluido en la nueva configuración de cookies.

Se aplica a

Append(String, String)

Source:
IResponseCookies.cs

Agregue una nueva cookie y un valor.

public:
 void Append(System::String ^ key, System::String ^ value);
public void Append (string key, string value);
abstract member Append : string * string -> unit
Public Sub Append (key As String, value As String)

Parámetros

key
String

Nombre de la nueva cookie.

value
String

Valor de la nueva cookie.

Se aplica a

Append(String, String, CookieOptions)

Source:
IResponseCookies.cs

Agregue una nueva cookie.

public:
 void Append(System::String ^ key, System::String ^ value, Microsoft::AspNetCore::Http::CookieOptions ^ options);
public void Append (string key, string value, Microsoft.AspNetCore.Http.CookieOptions options);
abstract member Append : string * string * Microsoft.AspNetCore.Http.CookieOptions -> unit
Public Sub Append (key As String, value As String, options As CookieOptions)

Parámetros

key
String

Nombre de la nueva cookie.

value
String

Valor de la nueva cookie.

options
CookieOptions

CookieOptions incluido en la nueva configuración de cookie.

Se aplica a