User Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a 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
- Inheritance
- Attributes
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Authentication |
Gets the authentication status of the user. |
Non |
Gets the user's non-roamable id. |
Type |
Gets the user type. |
Check |
Retrieves a value indicating whether the user belongs to the specified user age consent group. |
Create |
Creates a UserWatcher which enumerates users and raises events when the collection of users changes or when a user’s authentication state changes. |
Find |
Finds all users asynchronously. |
Find |
Finds all users of a given type and authentication status asynchronously. |
Find |
Finds all users of a given type asynchronously. |
Get |
Gets an object representing the default user account. |
Get |
Gets a user with a given Id. |
Get |
Gets a user's picture asynchronously. |
Get |
Gets properties for the user. |
Get |
Gets a property for the user. Use the KnownUserProperties class to obtain property names. |