语言

User.FindAllAsync 方法

定义

重载

名称 说明
FindAllAsync()

异步查找所有用户。

FindAllAsync(UserType)

异步查找给定类型的所有用户。

FindAllAsync(UserType, UserAuthenticationStatus)

异步查找给定类型和身份验证状态的所有用户。

FindAllAsync()

异步查找所有用户。

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

返回

此方法成功完成后,将返回 用户的列表(类型 IVectorView)。

属性

注解

此方法返回当前登录到与调用应用程序相同的会话的用户。 它不枚举设备上存储的所有帐户。

若要使用户直接运行当前进程,请使用 GetDefault(可从版本 2104 Windows 10获取)。

另请参阅

适用于

FindAllAsync(UserType)

异步查找给定类型的所有用户。

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

参数

type
UserType

要查找的用户的类型。

返回

此方法成功完成后,将返回 用户的列表(类型 IVectorView)。

属性

注解

此方法返回当前登录到与调用应用程序相同的会话的用户。 它不枚举设备上存储的所有帐户。

若要使用户直接运行当前进程,请使用 GetDefault(可从版本 2104 Windows 10获取)。

另请参阅

适用于

FindAllAsync(UserType, UserAuthenticationStatus)

异步查找给定类型和身份验证状态的所有用户。

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

参数

type
UserType

要查找的用户的类型。

status
UserAuthenticationStatus

要查找的用户的身份验证状态。

返回

此方法成功完成后,将返回 用户的列表(类型 IVectorView)。

属性

注解

警告

此重载已弃用。 请改用 FindAllAsync 或 GetDefault 。

此方法返回当前登录到与调用应用程序相同的会话的用户。 它不枚举设备上存储的所有帐户。

若要使用户直接运行当前进程,请使用 GetDefault(可从版本 2104 Windows 10获取)。

另请参阅

适用于