User.FindAllAsync Méthode

Définition

Surcharges

Nom Description
FindAllAsync()

Recherche tous les utilisateurs de manière asynchrone.

FindAllAsync(UserType)

Recherche tous les utilisateurs d’un type donné de manière asynchrone.

FindAllAsync(UserType, UserAuthenticationStatus)

Recherche tous les utilisateurs d’un type donné et l’état d’authentification de manière asynchrone.

FindAllAsync()

Recherche tous les utilisateurs de manière asynchrone.

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

Retours

Lorsque cette méthode se termine correctement, elle retourne une liste (type IVectorView) de Users.

Attributs

Remarques

Cette méthode retourne les utilisateurs actuellement connectés à la même session que l’application appelante. Il n’énumère pas tous les comptes stockés sur l’appareil.

Pour que l’utilisateur exécute directement le processus actuel, utilisez GetDefault (disponible à partir de Windows 10, version 2104).

Voir aussi

S’applique à

FindAllAsync(UserType)

Recherche tous les utilisateurs d’un type donné de manière asynchrone.

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

Paramètres

type
UserType

Type d’utilisateurs à rechercher.

Retours

Lorsque cette méthode se termine correctement, elle retourne une liste (type IVectorView) de Users.

Attributs

Remarques

Cette méthode retourne les utilisateurs actuellement connectés à la même session que l’application appelante. Il n’énumère pas tous les comptes stockés sur l’appareil.

Pour que l’utilisateur exécute directement le processus actuel, utilisez GetDefault (disponible à partir de Windows 10, version 2104).

Voir aussi

S’applique à

FindAllAsync(UserType, UserAuthenticationStatus)

Recherche tous les utilisateurs d’un type donné et l’état d’authentification de manière asynchrone.

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

Paramètres

type
UserType

Type d’utilisateurs à rechercher.

status
UserAuthenticationStatus

État d’authentification des utilisateurs à rechercher.

Retours

Lorsque cette méthode se termine correctement, elle retourne une liste (type IVectorView) de Users.

Attributs

Remarques

Avertissement

Cette surcharge est déconseillée. Utilisez FindAllAsync ou GetDefault à la place.

Cette méthode retourne les utilisateurs actuellement connectés à la même session que l’application appelante. Il n’énumère pas tous les comptes stockés sur l’appareil.

Pour que l’utilisateur exécute directement le processus actuel, utilisez GetDefault (disponible à partir de Windows 10, version 2104).

Voir aussi

S’applique à