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)

Syntax

<ExtensionAttribute> _
Public Shared Function ClearCookiesAsync ( _
    browserControl As WebBrowser _
) As Task
public static Task ClearCookiesAsync(
    this WebBrowser browserControl
)

Parameters

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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

WebBrowserExtensions Class

Microsoft.Phone.Controls Namespace