WebAccountManager Class

Definition

Provides methods for managing web accounts.

public ref class WebAccountManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WebAccountManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class WebAccountManager
Public Class WebAccountManager
Inheritance
Object Platform::Object IInspectable WebAccountManager
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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>)

Adds a new web account asynchronously with three inputs.

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

Adds a new web account asynchronously with four inputs.

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

Adds a new web account asynchronously with five inputs.

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)

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)

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

ClearPerUserFromPerAppAccountAsync(WebAccount)

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

ClearViewAsync(WebAccount, Uri)

Clears the view for a web account.

ClearWebAccountPictureAsync(WebAccount)

Clears a web account picture asynchronously.

DeleteWebAccountAsync(WebAccount)

Deletes a web account asynchronously.

FindAllProviderWebAccountsAsync()

Finds all provider web accounts asynchronously.

FindAllProviderWebAccountsForUserAsync(User)

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

GetPerUserFromPerAppAccountAsync(WebAccount)

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

GetScope(WebAccount)

Gets the scope of the web account.

GetViewsAsync(WebAccount)

Gets the views for a web account asynchronously.

InvalidateAppCacheForAccountAsync(WebAccount)

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

InvalidateAppCacheForAllAccountsAsync()

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

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>)

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)

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

SetScopeAsync(WebAccount, WebAccountScope)

Sets the scope of a web account asynchronously.

SetViewAsync(WebAccount, WebAccountClientView)

Sets the view for a web account asynchronously.

SetWebAccountPictureAsync(WebAccount, IRandomAccessStream)

Sets the picture of a web account asynchronously.

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

Updates the properties of a web account asynchronously.

Applies to

See also