ClearCookiesAsync Method
Collapse the table of content
Expand the table of content

WebBrowserExtensions.ClearCookiesAsync Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Clears the cookies associated with the specified web browser control asynchronously.

Namespace:  Microsoft.Phone.Controls
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public static Task ClearCookiesAsync(
	this WebBrowser browserControl


Type: Microsoft.Phone.Controls.WebBrowser
The web browser control to clear cookies for.

Return Value

Type: System.Threading.Tasks.Task
An asynchronous result that represents the clear cookie operation.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WebBrowser. When you use instance method syntax to call this method, omit the first parameter.

Windows Phone OS

Supported in: 8.1, 8.0

© 2016 Microsoft