CortanaPermission 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 Cortana permissions available to a CortanaPermissionManager object.
public enum class CortanaPermission
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
enum class CortanaPermission
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.Deprecated("CortanaPermission 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 CortanaPermission
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
public enum CortanaPermission
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.Deprecated("CortanaPermission 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 CortanaPermission
var value = Windows.Services.Cortana.CortanaPermission.browsingHistory
Public Enum CortanaPermission
- Inheritance
-
CortanaPermission
- 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 |
---|---|---|
BrowsingHistory | 0 | Cortana can access the user's web browsing history. |
Calendar | 1 | Cortana can access the user's calendar. |
CallHistory | 2 | Cortana can access the user's call history. |
Contacts | 3 | Cortana can access the user's contacts. |
4 | Cortana can send email. |
|
InputPersonalization | 5 | Cortana can access input personalization settings. |
Location | 6 | Cortana can access the user's location. |
Messaging | 7 | Cortana can send text messages. |
Microphone | 8 | Cortana can access the microphone. |
Personalization | 9 | Cortana personalization settings are exposed. |
PhoneCall | 10 | Cortana can make phone calls. |
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"/>