CoreWebView2CookieManager.CreateCookieWithSystemNetCookie(Cookie) Method
Definition
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.
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.