User User User User User Class

Definition

Represents a user.

public : sealed class User : IUser
struct winrt::Windows::System::User : IUser
public sealed class User : IUser
Public NotInheritable Class User Implements IUser
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

AuthenticationStatus AuthenticationStatus AuthenticationStatus AuthenticationStatus AuthenticationStatus

Gets the authentication status of the user.

NonRoamableId NonRoamableId NonRoamableId NonRoamableId NonRoamableId

Gets the user's non-roamable id.

Type Type Type Type Type

Gets the user type.

Methods

CreateWatcher() CreateWatcher() CreateWatcher() CreateWatcher() CreateWatcher()

Creates a UserWatcher which enumerates users and raises events when the collection of users changes or when a user’s authentication state changes.

FindAllAsync() FindAllAsync() FindAllAsync() FindAllAsync() FindAllAsync()

Finds all users asynchronously.

FindAllAsync(UserType) FindAllAsync(UserType) FindAllAsync(UserType) FindAllAsync(UserType) FindAllAsync(UserType)

Finds all users of a given type asynchronously.

FindAllAsync(UserType, UserAuthenticationStatus) FindAllAsync(UserType, UserAuthenticationStatus) FindAllAsync(UserType, UserAuthenticationStatus) FindAllAsync(UserType, UserAuthenticationStatus) FindAllAsync(UserType, UserAuthenticationStatus)

Finds all users of a given type and authentication status asynchronously.

GetFromId(String) GetFromId(String) GetFromId(String) GetFromId(String) GetFromId(String)

Gets a user with a given Id.

GetPictureAsync(UserPictureSize) GetPictureAsync(UserPictureSize) GetPictureAsync(UserPictureSize) GetPictureAsync(UserPictureSize) GetPictureAsync(UserPictureSize)

Gets a user's picture asynchronously.

GetPropertiesAsync(IVectorView<String>) GetPropertiesAsync(IVectorView<String>) GetPropertiesAsync(IVectorView<String>) GetPropertiesAsync(IVectorView<String>) GetPropertiesAsync(IVectorView<String>)

Gets properties for the user.

GetPropertyAsync(String) GetPropertyAsync(String) GetPropertyAsync(String) GetPropertyAsync(String) GetPropertyAsync(String)

Gets a property for the user. Use the KnownUserProperties class to obtain property names.

See Also