Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IResponseCookies.Append Method
Definition
- Namespace:
- Microsoft.AspNetCore.Http
- Assembly:
- Microsoft.AspNetCore.Http.Features.dll
- Package:
- Microsoft.AspNetCore.App.Ref v10.0.0
- Package:
- Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.App.Ref v6.0.36
- Package:
- Microsoft.AspNetCore.App.Ref v7.0.5
- Package:
- Microsoft.AspNetCore.App.Ref v8.0.19
- Package:
- Microsoft.AspNetCore.App.Ref v9.0.8
- Package:
- Microsoft.AspNetCore.Http.Features v1.0.0
- Package:
- Microsoft.AspNetCore.Http.Features v1.1.0
- Package:
- Microsoft.AspNetCore.Http.Features v2.0.0
- Package:
- Microsoft.AspNetCore.Http.Features v2.1.0
- Package:
- Microsoft.AspNetCore.Http.Features v2.2.0
- Package:
- Microsoft.AspNetCore.Http.Features v3.0.3
- Package:
- Microsoft.AspNetCore.Http.Features v3.1.18
- Package:
- Microsoft.AspNetCore.Http.Features v5.0.9
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.
Overloads
| Name | Description |
|---|---|
| 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
Feedback
Was this page helpful?
