次の方法で共有


CoreWebView2CookieManager.CreateCookieWithSystemNetCookie(Cookie) Method

Definition

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

public Microsoft.Web.WebView2.Core.CoreWebView2Cookie CreateCookieWithSystemNetCookie (System.Net.Cookie systemNetCookie);
member this.CreateCookieWithSystemNetCookie : System.Net.Cookie -> Microsoft.Web.WebView2.Core.CoreWebView2Cookie
Public Function CreateCookieWithSystemNetCookie (systemNetCookie As Cookie) As CoreWebView2Cookie

Parameters

systemNetCookie
Cookie

A System.Net.Cookie whose params to be used to create a CoreWebView2Cookie.

Returns

An object whose Name, Value, Path, Domain, IsHttpOnly, IsSecure, and Expires, matches those Name, Value, Path, Domain, HttpOnly, Secure, and Expires of the given Cookie object.

Remarks

The default value for the SameSite property of the returned CoreWebView2Cookie object is Lax.

Applies to

See also