User クラス

定義

ユーザーを表します。

public ref class User sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class User 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)]
class User final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class User
[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 User
Public NotInheritable Class User
継承
Object Platform::Object IInspectable User
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

プロパティ

AuthenticationStatus

ユーザーの認証状態を取得します。

NonRoamableId

ユーザーのローミング不可能な ID を取得します。

Type

ユーザーの種類を取得します。

メソッド

CheckUserAgeConsentGroupAsync(UserAgeConsentGroup)

指定したユーザー年齢同意グループにユーザーが属しているかどうかを示す値を取得します。

CreateWatcher()

ユーザーのコレクションが変更されたとき、またはユーザーの認証状態が変更されたときに、ユーザーを列挙し、イベントを発生させる UserWatcher を作成します。

FindAllAsync()

すべてのユーザーを非同期的に検索します。

FindAllAsync(UserType)

特定の型のすべてのユーザーを非同期的に検索します。

FindAllAsync(UserType, UserAuthenticationStatus)

特定の種類と認証状態のすべてのユーザーを非同期的に検索します。

GetDefault()

既定のユーザー アカウントを表す オブジェクトを取得します。

GetFromId(String)

指定された ID を持つユーザーを取得します。

GetPictureAsync(UserPictureSize)

ユーザーの画像を非同期的に取得します。

GetPropertiesAsync(IVectorView<String>)

ユーザーのプロパティを取得します。

GetPropertyAsync(String)

ユーザーのプロパティを取得します。 KnownUserProperties クラスを使用して、プロパティ名を取得します。

適用対象

こちらもご覧ください