Share via


WebAccount Klasse

Definition

Identifiziert ein Konto von einem Webkontoanbieter.

public ref class WebAccount sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Credentials.IWebAccountFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WebAccount final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Credentials.IWebAccountFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class WebAccount final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Credentials.IWebAccountFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class WebAccount
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Credentials.IWebAccountFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class WebAccount
function WebAccount(webAccountProvider, userName, state)
Public NotInheritable Class WebAccount
Vererbung
Object Platform::Object IInspectable WebAccount
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Konstruktoren

WebAccount(WebAccountProvider, String, WebAccountState)

Erstellt eine instance der WebAccount-Klasse.

Eigenschaften

Id

Ruft die ID des Webkontos ab.

Properties

Ruft die Eigenschaften des Webkontos ab.

State

Ruft den Verbindungsstatus des Webkontos ab.

UserName

Ruft den Benutzernamen für das Webkonto ab.

WebAccountProvider

Ruft den Webauthentifizierungsanbieter für das Konto ab.

Methoden

GetPictureAsync(WebAccountPictureSize)

Ruft das Bild des Webkontos asynchron ab.

SignOutAsync()

Signieren Sie das Webkonto asynchron. Dadurch werden alle zwischengespeicherten Token gelöscht, die dem Konto zugeordnet sind, und der Anbieter wird aufgefordert, alle Token, die dem Konto für diese App zugeordnet sind, für ungültig zu erklären.

SignOutAsync(String)

Signieren Sie das Webkonto asynchron. Dadurch werden alle zwischengespeicherten Token gelöscht, die dem Konto zugeordnet sind, und der Anbieter wird aufgefordert, alle Token, die dem Konto für diese App zugeordnet sind, für ungültig zu erklären.

Gilt für:

Weitere Informationen