CortanaPermissionsChangeResult 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.
Specifies the possible results from setting permissions using the CortanaPermissionsManager.
public enum class CortanaPermissionsChangeResult
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
enum class CortanaPermissionsChangeResult
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.Deprecated("CortanaPermissionsChangeResult is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
enum class CortanaPermissionsChangeResult
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
public enum CortanaPermissionsChangeResult
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.Deprecated("CortanaPermissionsChangeResult is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public enum CortanaPermissionsChangeResult
var value = Windows.Services.Cortana.CortanaPermissionsChangeResult.success
Public Enum CortanaPermissionsChangeResult
- Inheritance
-
CortanaPermissionsChangeResult
- Attributes
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
App capabilities |
cortanaPermissions
|
Fields
Name | Value | Description |
---|---|---|
Success | 0 | Setting all permissions succeeded. |
Unavailable | 1 | Setting one or more permissions failed. |
DisabledByPolicy | 2 | Changes to settings are not permitted. |
Remarks
The CortanaPermissionManager class requires the following be added to the Package.appmanifest:
To <Package>
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="rescap"
Under <Capabilities>
<rescap:capability name="cortanaPermissions"/>
"iot" to the list of IgnorableNamespaces
<iot:Capability Name="systemManagement"/>