AsyncExtensionsVisitUrlCookiesAsync Method |
Version 130.1.90
Visits a subset of the cookies. The results are filtered by the given url scheme, host, domain and path.
If includeHttpOnly is true, HTTP-only cookies will also be included in the results. The returned cookies
are sorted by longest path, then by earliest creation date.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax public static Task<List<Cookie>> VisitUrlCookiesAsync(
this ICookieManager cookieManager,
string url,
bool includeHttpOnly
)
public:
[ExtensionAttribute]
static Task<List<Cookie^>^>^ VisitUrlCookiesAsync(
ICookieManager^ cookieManager,
String^ url,
bool includeHttpOnly
)
Parameters
- cookieManager ICookieManager
- cookie manager
- url String
- The URL to use for filtering a subset of the cookies available.
- includeHttpOnly Boolean
- A flag that determines whether HTTP-only cookies will be shown in results.
Return Value
TaskListCookieA task that represents the VisitUrlCookies operation. The value of the TResult parameter contains a List of cookies.
or null if cookies cannot be accessed.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ICookieManager. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also