AppCapabilityAccessStatus Enum
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.
Describes an application's access to a single capability.
public enum class AppCapabilityAccessStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
enum class AppCapabilityAccessStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
public enum AppCapabilityAccessStatus
var value = Windows.Security.Authorization.AppCapabilityAccess.AppCapabilityAccessStatus.deniedBySystem
Public Enum AppCapabilityAccessStatus
- Inheritance
-
AppCapabilityAccessStatus
- Attributes
Windows requirements
Device family |
Windows 10, version 1903 (introduced in 10.0.18362.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v8.0)
|
Fields
Name | Value | Description |
---|---|---|
DeniedBySystem | 0 | State: Denied by System. |
NotDeclaredByApp | 1 | State: Not Declared by App. |
DeniedByUser | 2 | State: Denied by User. |
UserPromptRequired | 3 | State: User Prompt Required |
Allowed | 4 | State: Allowed. |
Remarks
"Requesting" access means to ask the system to do a full access check, which may involve a user prompt. Requests will never return "UserPromptRequired". "Checking" access will simply query your status and is guaranteed to not prompt, as such may return the status "UserPromptRequired".