次の方法で共有


CoreWebView2CookieManager.CreateCookie(String, String, String, String) Method

Definition

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

public Microsoft.Web.WebView2.Core.CoreWebView2Cookie CreateCookie (string name, string value, string Domain, string Path);
public Microsoft.Web.WebView2.Core.CoreWebView2Cookie CreateCookie (string name, string cookieValue, string Domain, string Path);
member this.CreateCookie : string * string * string * string -> Microsoft.Web.WebView2.Core.CoreWebView2Cookie
member this.CreateCookie : string * string * string * string -> Microsoft.Web.WebView2.Core.CoreWebView2Cookie
Public Function CreateCookie (name As String, value As String, Domain As String, Path As String) As CoreWebView2Cookie
Public Function CreateCookie (name As String, cookieValue As String, Domain As String, Path As String) As CoreWebView2Cookie

Parameters

name
String

The name for the CoreWebView2Cookie to be created. It cannot start with whitespace(s).

valuecookieValue
String
Domain
String
Path
String

Returns

Remarks

One can set other optional properties after cookie creation. This only creates a cookie object and it is not added to the cookie manager until you call AddOrUpdateCookie(CoreWebView2Cookie). name that starts with whitespace(s) is not allowed.

Applies to