User.FindAllAsync Methode

Definition

Überlädt

Name Beschreibung
FindAllAsync()

Sucht alle Benutzer asynchron.

FindAllAsync(UserType)

Sucht alle Benutzer eines bestimmten Typs asynchron.

FindAllAsync(UserType, UserAuthenticationStatus)

Sucht alle Benutzer eines bestimmten Typs und Authentifizierungsstatus asynchron.

FindAllAsync()

Sucht alle Benutzer asynchron.

public:
 static IAsyncOperation<IVectorView<User ^> ^> ^ FindAllAsync();
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("FindAllAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVectorView<User>> FindAllAsync();
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("FindAllAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<User>> FindAllAsync();
function findAllAsync()
Public Shared Function FindAllAsync () As IAsyncOperation(Of IReadOnlyList(Of User))

Gibt zurück

Wenn diese Methode erfolgreich abgeschlossen wurde, wird eine Liste (Typ IVectorView) von Userszurückgegeben.

Attribute

Hinweise

Diese Methode gibt Benutzer zurück, die zurzeit bei derselben Sitzung angemeldet sind wie die aufrufende Anwendung. Es werden nicht alle konten aufgelistet, die auf dem Gerät gespeichert sind.

Verwenden Sie GetDefault (verfügbar ab Windows 10, Version 2104), um den Benutzer direkt auszuführen, den aktuellen Prozess auszuführen.

Weitere Informationen

Gilt für:

FindAllAsync(UserType)

Sucht alle Benutzer eines bestimmten Typs asynchron.

public:
 static IAsyncOperation<IVectorView<User ^> ^> ^ FindAllAsync(UserType type);
/// [Windows.Foundation.Metadata.Overload("FindAllAsyncByType")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVectorView<User>> FindAllAsync(UserType const& type);
/// [Windows.Foundation.Metadata.Overload("FindAllAsyncByType")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("FindAllAsyncByType is deprecated and might not function consistently on all platforms. Instead, use FindAllAsync or GetDefault.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 720896, "Windows.Foundation.UniversalApiContract")]
 static IAsyncOperation<IVectorView<User>> FindAllAsync(UserType const& type);
[Windows.Foundation.Metadata.Overload("FindAllAsyncByType")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<User>> FindAllAsync(UserType type);
[Windows.Foundation.Metadata.Overload("FindAllAsyncByType")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("FindAllAsyncByType is deprecated and might not function consistently on all platforms. Instead, use FindAllAsync or GetDefault.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 720896, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<IReadOnlyList<User>> FindAllAsync(UserType type);
function findAllAsync(type)
Public Shared Function FindAllAsync (type As UserType) As IAsyncOperation(Of IReadOnlyList(Of User))

Parameter

type
UserType

Der Typ der zu findenden Benutzer.

Gibt zurück

Wenn diese Methode erfolgreich abgeschlossen wurde, wird eine Liste (Typ IVectorView) von Userszurückgegeben.

Attribute

Hinweise

Diese Methode gibt Benutzer zurück, die zurzeit bei derselben Sitzung angemeldet sind wie die aufrufende Anwendung. Es werden nicht alle konten aufgelistet, die auf dem Gerät gespeichert sind.

Verwenden Sie GetDefault (verfügbar ab Windows 10, Version 2104), um den Benutzer direkt auszuführen, den aktuellen Prozess auszuführen.

Weitere Informationen

Gilt für:

FindAllAsync(UserType, UserAuthenticationStatus)

Sucht alle Benutzer eines bestimmten Typs und Authentifizierungsstatus asynchron.

public:
 static IAsyncOperation<IVectorView<User ^> ^> ^ FindAllAsync(UserType type, UserAuthenticationStatus status);
/// [Windows.Foundation.Metadata.Overload("FindAllAsyncByTypeAndStatus")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVectorView<User>> FindAllAsync(UserType const& type, UserAuthenticationStatus const& status);
/// [Windows.Foundation.Metadata.Overload("FindAllAsyncByTypeAndStatus")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("FindAllAsyncByTypeAndStatus is deprecated and might not function consistently on all platforms. Instead, use FindAllAsync or GetDefault.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 720896, "Windows.Foundation.UniversalApiContract")]
 static IAsyncOperation<IVectorView<User>> FindAllAsync(UserType const& type, UserAuthenticationStatus const& status);
[Windows.Foundation.Metadata.Overload("FindAllAsyncByTypeAndStatus")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<User>> FindAllAsync(UserType type, UserAuthenticationStatus status);
[Windows.Foundation.Metadata.Overload("FindAllAsyncByTypeAndStatus")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("FindAllAsyncByTypeAndStatus is deprecated and might not function consistently on all platforms. Instead, use FindAllAsync or GetDefault.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 720896, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<IReadOnlyList<User>> FindAllAsync(UserType type, UserAuthenticationStatus status);
function findAllAsync(type, status)
Public Shared Function FindAllAsync (type As UserType, status As UserAuthenticationStatus) As IAsyncOperation(Of IReadOnlyList(Of User))

Parameter

type
UserType

Der Typ der zu findenden Benutzer.

status
UserAuthenticationStatus

Der Authentifizierungsstatus von Benutzern, die gesucht werden sollen.

Gibt zurück

Wenn diese Methode erfolgreich abgeschlossen wurde, wird eine Liste (Typ IVectorView) von Userszurückgegeben.

Attribute

Hinweise

Warnung

Diese Überladung ist veraltet. Verwenden Sie stattdessen FindAllAsync oder GetDefault .

Diese Methode gibt Benutzer zurück, die zurzeit bei derselben Sitzung angemeldet sind wie die aufrufende Anwendung. Es werden nicht alle konten aufgelistet, die auf dem Gerät gespeichert sind.

Verwenden Sie GetDefault (verfügbar ab Windows 10, Version 2104), um den Benutzer direkt auszuführen, den aktuellen Prozess auszuführen.

Weitere Informationen

Gilt für: