AssignedAccessSettings Class
Definition
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.
Provides properties and methods to access the user's assigned access settings.
public ref class AssignedAccessSettings sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AssignedAccessSettings final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AssignedAccessSettings
Public NotInheritable Class AssignedAccessSettings
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|
Remarks
Assigned access settings are per user and per device.
Call GetForUser if your app supports multiple users. Call GetDefault if your app supports a single user.
Properties
IsEnabled |
Gets a value that indicates whether the user has configured Assigned Access in the Windows settings. |
IsSingleAppKioskMode |
Gets a value that indicates whether the kiosk account is configured as a single-app kiosk. |
User |
Gets the User associated with this instance of assigned access settings. |
Methods
GetDefault() |
Retrieves the default assigned access settings. |
GetForUser(User) |
Retrieves the assigned access settings for the specified user. |