CoreWebView2CookieManager Class

Definition

Creates, adds or updates, gets, or or view the cookies.

public class CoreWebView2CookieManager
type CoreWebView2CookieManager = class
Public Class CoreWebView2CookieManager
Inheritance
CoreWebView2CookieManager

Remarks

The changes would apply to the context of the user profile. That is, other WebViews under the same user profile could be affected.

Methods

AddOrUpdateCookie(CoreWebView2Cookie)

Adds or updates a cookie with the given cookie data; may overwrite cookies with matching name, domain, and path if they exist.

CopyCookie(CoreWebView2Cookie)

Creates a cookie whose params matches those of the specified cookie.

CreateCookie(String, String, String, String)

Creates a cookie object with a specified name, value, domain, and path.

CreateCookieWithCookie(CoreWebView2Cookie)

Creates a cookie whose params matches those of the specified cookie.

CreateCookieWithSystemNetCookie(Cookie)

Creates a CoreWebView2Cookie object whose params matches those of the given System.Net.Cookie.

DeleteAllCookies()

Deletes all cookies under the same profile.

DeleteCookie(CoreWebView2Cookie)

Deletes a cookie whose name and domain/path pair match those of the specified cookie.

DeleteCookies(String, String)

Deletes cookies with matching name and uri.

DeleteCookiesWithDomainAndPath(String, String, String)

Deletes cookies with matching name and domain/path pair.

GetCookiesAsync(String)

Gets a list of cookies matching the specific URI.

Applies to