Language

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

返品

このメソッドが正常に完了すると、Usersのリスト (IVectorView型) が返されます。

属性

注釈

このメソッドは、現在呼び出し元アプリケーションと同じセッションにサインインしているユーザーを返します。 デバイスに格納されているすべてのアカウントが列挙されるわけではありません。

現在のプロセスを直接実行するユーザーを取得するには、GetDefault (Windows 10 バージョン 2104 から入手できます) を使用します。

こちらもご覧ください

適用対象

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

検索するユーザーの種類。

返品

このメソッドが正常に完了すると、Usersのリスト (IVectorView型) が返されます。

属性

注釈

このメソッドは、現在呼び出し元アプリケーションと同じセッションにサインインしているユーザーを返します。 デバイスに格納されているすべてのアカウントが列挙されるわけではありません。

現在のプロセスを直接実行するユーザーを取得するには、GetDefault (Windows 10 バージョン 2104 から入手できます) を使用します。

こちらもご覧ください

適用対象

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

検索するユーザーの認証状態。

返品

このメソッドが正常に完了すると、Usersのリスト (IVectorView型) が返されます。

属性

注釈

Warnung

このオーバーロードは非推奨です。 代わりに FindAllAsync または GetDefault を使用してください。

このメソッドは、現在呼び出し元アプリケーションと同じセッションにサインインしているユーザーを返します。 デバイスに格納されているすべてのアカウントが列挙されるわけではありません。

現在のプロセスを直接実行するユーザーを取得するには、GetDefault (Windows 10 バージョン 2104 から入手できます) を使用します。

こちらもご覧ください

適用対象