WebAccount WebAccount WebAccount WebAccount WebAccount Class

Definition

Identifies an account from a web account provider.

public : sealed class WebAccount : IWebAccount
struct winrt::Windows::Security::Credentials::WebAccount : IWebAccount
public sealed class WebAccount : IWebAccount
Public NotInheritable Class WebAccount Implements IWebAccount
var webAccount = new webAccount(webAccountProvider, userName, state);
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

WebAccount(WebAccountProvider, String, WebAccountState) WebAccount(WebAccountProvider, String, WebAccountState) WebAccount(WebAccountProvider, String, WebAccountState) WebAccount(WebAccountProvider, String, WebAccountState) WebAccount(WebAccountProvider, String, WebAccountState)

Creates an instance of the WebAccount class.

Properties

Id Id Id Id Id

Gets the Id of the web account.

Properties Properties Properties Properties Properties

Gets the properties of the web account.

State State State State State

Gets the connected state of the web account.

UserName UserName UserName UserName UserName

Gets the username for the web account.

WebAccountProvider WebAccountProvider WebAccountProvider WebAccountProvider WebAccountProvider

Gets the web authentication provider for the account.

Methods

GetPictureAsync(WebAccountPictureSize) GetPictureAsync(WebAccountPictureSize) GetPictureAsync(WebAccountPictureSize) GetPictureAsync(WebAccountPictureSize) GetPictureAsync(WebAccountPictureSize)

Gets the web account's picture asynchronously.

SignOutAsync() SignOutAsync() SignOutAsync() SignOutAsync() SignOutAsync()

Signs the web account out asynchronously. This clears all cached tokens associated with the account, and tells the provider to invalidate any tokens associated with the account for this app.

SignOutAsync(String) SignOutAsync(String) SignOutAsync(String) SignOutAsync(String) SignOutAsync(String)

Signs the web account out asynchronously. This clears all cached tokens associated with the account, and tells the provider to invalidate any tokens associated with the account for this app.

See also