WebAccountManager WebAccountManager WebAccountManager WebAccountManager WebAccountManager Class

Definition

Provides methods for managing web accounts.

public : static class WebAccountManager
static struct winrt::Windows::Security::Authentication::Web::Provider::WebAccountManager
public static class WebAccountManager
Public Shared Class WebAccountManager
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Version history

Windows version SDK version Value added
1511 10586 PullCookiesAsync
1607 14393 AddWebAccountAsync(String,String,IReadOnlyDictionary<String,String>,WebAccountScope,String)
1607 14393 ClearPerUserFromPerAppAccountAsync
1607 14393 GetPerUserFromPerAppAccountAsync
1607 14393 SetPerAppToPerUserAccountAsync
1703 15063 AddWebAccountForUserAsync(User,String,String,IReadOnlyDictionary<String,String>)
1703 15063 AddWebAccountForUserAsync(User,String,String,IReadOnlyDictionary<String,String>,WebAccountScope)
1703 15063 AddWebAccountForUserAsync(User,String,String,IReadOnlyDictionary<String,String>,WebAccountScope,String)
1703 15063 FindAllProviderWebAccountsForUserAsync
1709 16299 InvalidateAppCacheForAccountAsync
1709 16299 InvalidateAppCacheForAllAccountsAsync

Methods

AddWebAccountAsync(String, String, IMapView<String, String>) AddWebAccountAsync(String, String, IMapView<String, String>) AddWebAccountAsync(String, String, IMapView<String, String>) AddWebAccountAsync(String, String, IMapView<String, String>) AddWebAccountAsync(String, String, IMapView<String, String>)

Adds a new web account asynchronously with three inputs.

AddWebAccountAsync(String, String, IMapView<String, String>, WebAccountScope) AddWebAccountAsync(String, String, IMapView<String, String>, WebAccountScope) AddWebAccountAsync(String, String, IMapView<String, String>, WebAccountScope) AddWebAccountAsync(String, String, IMapView<String, String>, WebAccountScope) AddWebAccountAsync(String, String, IMapView<String, String>, WebAccountScope)

Adds a new web account asynchronously with four inputs.

AddWebAccountAsync(String, String, IMapView<String, String>, WebAccountScope, String) AddWebAccountAsync(String, String, IMapView<String, String>, WebAccountScope, String) AddWebAccountAsync(String, String, IMapView<String, String>, WebAccountScope, String) AddWebAccountAsync(String, String, IMapView<String, String>, WebAccountScope, String) AddWebAccountAsync(String, String, IMapView<String, String>, WebAccountScope, String)

Adds a new web account asynchronously with five inputs.

AddWebAccountForUserAsync(User, String, String, IMapView<String, String>) AddWebAccountForUserAsync(User, String, String, IMapView<String, String>) AddWebAccountForUserAsync(User, String, String, IMapView<String, String>) AddWebAccountForUserAsync(User, String, String, IMapView<String, String>) AddWebAccountForUserAsync(User, String, String, IMapView<String, String>)

Adds a new web account. This process is tracked as belonging to a specified user (for use with multi-user-aware apps).

AddWebAccountForUserAsync(User, String, String, IMapView<String, String>, WebAccountScope) AddWebAccountForUserAsync(User, String, String, IMapView<String, String>, WebAccountScope) AddWebAccountForUserAsync(User, String, String, IMapView<String, String>, WebAccountScope) AddWebAccountForUserAsync(User, String, String, IMapView<String, String>, WebAccountScope) AddWebAccountForUserAsync(User, String, String, IMapView<String, String>, WebAccountScope)

Adds a new web account. This process is tracked as belonging to a specified user (for use with multi-user-aware apps).

AddWebAccountForUserAsync(User, String, String, IMapView<String, String>, WebAccountScope, String) AddWebAccountForUserAsync(User, String, String, IMapView<String, String>, WebAccountScope, String) AddWebAccountForUserAsync(User, String, String, IMapView<String, String>, WebAccountScope, String) AddWebAccountForUserAsync(User, String, String, IMapView<String, String>, WebAccountScope, String) AddWebAccountForUserAsync(User, String, String, IMapView<String, String>, WebAccountScope, String)

Adds a new web account. This process is tracked as belonging to a specified user (for use with multi-user-aware apps).

ClearPerUserFromPerAppAccountAsync(WebAccount) ClearPerUserFromPerAppAccountAsync(WebAccount) ClearPerUserFromPerAppAccountAsync(WebAccount) ClearPerUserFromPerAppAccountAsync(WebAccount) ClearPerUserFromPerAppAccountAsync(WebAccount)

Clears the link between per-user and per-app web accounts.

ClearViewAsync(WebAccount, Uri) ClearViewAsync(WebAccount, Uri) ClearViewAsync(WebAccount, Uri) ClearViewAsync(WebAccount, Uri) ClearViewAsync(WebAccount, Uri)

Clears the view for a web account.

ClearWebAccountPictureAsync(WebAccount) ClearWebAccountPictureAsync(WebAccount) ClearWebAccountPictureAsync(WebAccount) ClearWebAccountPictureAsync(WebAccount) ClearWebAccountPictureAsync(WebAccount)

Clears a web account picture asynchronously.

DeleteWebAccountAsync(WebAccount) DeleteWebAccountAsync(WebAccount) DeleteWebAccountAsync(WebAccount) DeleteWebAccountAsync(WebAccount) DeleteWebAccountAsync(WebAccount)

Deletes a web account asynchronously.

FindAllProviderWebAccountsAsync() FindAllProviderWebAccountsAsync() FindAllProviderWebAccountsAsync() FindAllProviderWebAccountsAsync() FindAllProviderWebAccountsAsync()

Finds all provider web accounts asynchronously.

FindAllProviderWebAccountsForUserAsync(User) FindAllProviderWebAccountsForUserAsync(User) FindAllProviderWebAccountsForUserAsync(User) FindAllProviderWebAccountsForUserAsync(User) FindAllProviderWebAccountsForUserAsync(User)

Finds all provider web accounts associated with a given user asynchronously (for use with multi-user-aware apps).

GetPerUserFromPerAppAccountAsync(WebAccount) GetPerUserFromPerAppAccountAsync(WebAccount) GetPerUserFromPerAppAccountAsync(WebAccount) GetPerUserFromPerAppAccountAsync(WebAccount) GetPerUserFromPerAppAccountAsync(WebAccount)

Gets a per-user web account from a per-app web account.

GetScope(WebAccount) GetScope(WebAccount) GetScope(WebAccount) GetScope(WebAccount) GetScope(WebAccount)

Gets the scope of the web account.

GetViewsAsync(WebAccount) GetViewsAsync(WebAccount) GetViewsAsync(WebAccount) GetViewsAsync(WebAccount) GetViewsAsync(WebAccount)

Gets the views for a web account asynchronously.

InvalidateAppCacheForAccountAsync(WebAccount) InvalidateAppCacheForAccountAsync(WebAccount) InvalidateAppCacheForAccountAsync(WebAccount) InvalidateAppCacheForAccountAsync(WebAccount) InvalidateAppCacheForAccountAsync(WebAccount)

Clears the web account manager's token cache for a specific web account.

InvalidateAppCacheForAllAccountsAsync() InvalidateAppCacheForAllAccountsAsync() InvalidateAppCacheForAllAccountsAsync() InvalidateAppCacheForAllAccountsAsync() InvalidateAppCacheForAllAccountsAsync()

Clears the web account manager's token cache for all web accounts.

PullCookiesAsync(String, String) PullCookiesAsync(String, String) PullCookiesAsync(String, String) PullCookiesAsync(String, String) PullCookiesAsync(String, String)

Pulls cookies asynchronously. Use this to enable single sign-on in an app after a user has entered their credentials into a web browser.

PushCookiesAsync(Uri, IVectorView<HttpCookie>) PushCookiesAsync(Uri, IVectorView<HttpCookie>) PushCookiesAsync(Uri, IVectorView<HttpCookie>) PushCookiesAsync(Uri, IVectorView<HttpCookie>) PushCookiesAsync(Uri, IVectorView<HttpCookie>)

Pushes cookies asynchronously. Use this to enable single sign-on for a web account in a browser after the user has entered their credentials into the app.

SetPerAppToPerUserAccountAsync(WebAccount, String) SetPerAppToPerUserAccountAsync(WebAccount, String) SetPerAppToPerUserAccountAsync(WebAccount, String) SetPerAppToPerUserAccountAsync(WebAccount, String) SetPerAppToPerUserAccountAsync(WebAccount, String)

Creates a per-app to per-user account link.

SetScopeAsync(WebAccount, WebAccountScope) SetScopeAsync(WebAccount, WebAccountScope) SetScopeAsync(WebAccount, WebAccountScope) SetScopeAsync(WebAccount, WebAccountScope) SetScopeAsync(WebAccount, WebAccountScope)

Sets the scope of a web account asynchronously.

SetViewAsync(WebAccount, WebAccountClientView) SetViewAsync(WebAccount, WebAccountClientView) SetViewAsync(WebAccount, WebAccountClientView) SetViewAsync(WebAccount, WebAccountClientView) SetViewAsync(WebAccount, WebAccountClientView)

Sets the view for a web account asynchronously.

SetWebAccountPictureAsync(WebAccount, IRandomAccessStream) SetWebAccountPictureAsync(WebAccount, IRandomAccessStream) SetWebAccountPictureAsync(WebAccount, IRandomAccessStream) SetWebAccountPictureAsync(WebAccount, IRandomAccessStream) SetWebAccountPictureAsync(WebAccount, IRandomAccessStream)

Sets the picture of a web account asynchronously.

UpdateWebAccountPropertiesAsync(WebAccount, String, IMapView<String, String>) UpdateWebAccountPropertiesAsync(WebAccount, String, IMapView<String, String>) UpdateWebAccountPropertiesAsync(WebAccount, String, IMapView<String, String>) UpdateWebAccountPropertiesAsync(WebAccount, String, IMapView<String, String>) UpdateWebAccountPropertiesAsync(WebAccount, String, IMapView<String, String>)

Updates the properties of a web account asynchronously.

See also