IResponseCookies.Append Method

Definition

Overloads

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

Add elements of specified collection as cookies.

Append(String, String)

Add a new cookie and value.

Append(String, String, CookieOptions)

Add a new cookie.

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

Source:
IResponseCookies.cs

Add elements of specified collection as 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)

Parameters

keyValuePairs
ReadOnlySpan<KeyValuePair<String,String>>

Key value pair collections whose elements will be added as cookies.

options
CookieOptions

CookieOptions included in new cookie settings.

Applies to

Append(String, String)

Source:
IResponseCookies.cs

Add a new cookie and value.

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)

Parameters

key
String

Name of the new cookie.

value
String

Value of the new cookie.

Applies to

Append(String, String, CookieOptions)

Source:
IResponseCookies.cs

Add a new 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)

Parameters

key
String

Name of the new cookie.

value
String

Value of the new cookie.

options
CookieOptions

CookieOptions included in the new cookie setting.

Applies to