Movatterモバイル変換


[0]ホーム

URL:


CefSharp API Doc
CefSharp API Doc
Namespaces
CefSharp
AsyncExtensions Class
AsyncExtensions Methods
DeleteCookiesAsync Method
FlushStoreAsync Method
GetNavigationEntriesAsync Method
SetCookieAsync Method
VisitAllCookiesAsync Method
VisitUrlCookiesAsync Method
Click or drag to resizeClick or drag to resize

AsyncExtensionsSetCookieAsync Method

Version 118.6.80
Sets a cookie given a valid URL and explicit user-provided cookie attributes. This function expects each attribute to be well-formed. It will check for disallowed characters (e.g. the ';' character is disallowed within the cookie value attribute) and will return false without setting

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 118.6.80.0 (118.6.80.0)
Syntax
publicstaticTask<bool>SetCookieAsync(thisICookieManagercookieManager,stringurl,Cookiecookie)
public:[ExtensionAttribute]staticTask<bool>^SetCookieAsync(ICookieManager^cookieManager,String^url,Cookie^cookie)

Parameters

cookieManager
Type: CefSharpICookieManager
cookie manager
url
Type: SystemString
The cookie URL. If an empty string is provided, any URL will be matched.
cookie
Type: CefSharpCookie
the cookie to be set

Return Value

Type: TaskBoolean
returns false if the cookie cannot be set (e.g. if illegal charecters such as ';' are used); otherwise task that represents the set operation. The value of the TResult parameter contains a bool to indicate success.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of typeICookieManager. When you use instance method syntax to call this method, omit the first parameter. For more information, seeExtension Methods (Visual Basic) orExtension Methods (C# Programming Guide).
See Also

Reference

AsyncExtensions Class
CefSharp Namespace

https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE


[8]ページ先頭

©2009-2025 Movatter.jp