Click or drag to resize
AsyncExtensionsVisitUrlCookiesAsync Method
Version 63.0.0
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: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 63.0.0.0 (63.0.0.0)
Syntax
public static Task<List<Cookie>> VisitUrlCookiesAsync(
	this ICookieManager cookieManager,
	string url,
	bool includeHttpOnly
)

Parameters

cookieManager
Type: CefSharpICookieManager
cookie manager
url
Type: SystemString
The URL to use for filtering a subset of the cookies available.
includeHttpOnly
Type: SystemBoolean
A flag that determines whether HTTP-only cookies will be shown in results.

Return Value

Type: TaskListCookie
A 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