Bagikan melalui


CortanaPermission Enum

Definisi

Menentukan izin Cortana yang tersedia untuk objek CortanaPermissionManager .

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
Warisan
CortanaPermission
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Creators Update (diperkenalkan dalam 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v4.0)
Kemampuan aplikasi
cortanaPermissions

Bidang

BrowsingHistory 0

Cortana dapat mengakses riwayat penjelajahan web pengguna.

Calendar 1

Cortana dapat mengakses kalender pengguna.

CallHistory 2

Cortana dapat mengakses riwayat panggilan pengguna.

Contacts 3

Cortana dapat mengakses kontak pengguna.

Email 4

Cortana dapat mengirim email.

InputPersonalization 5

Cortana dapat mengakses pengaturan personalisasi input.

Location 6

Cortana dapat mengakses lokasi pengguna.

Messaging 7

Cortana dapat mengirim pesan teks.

Microphone 8

Cortana dapat mengakses mikrofon.

Personalization 9

Pengaturan personalisasi Cortana diekspos.

PhoneCall 10

Cortana bisa menelepon.

Keterangan

Kelas CortanaPermissionManager mengharuskan hal berikut ditambahkan ke Package.appmanifest:

  • Ke <Paket>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • Di bawah <Kapabilitas>
    • <rescap:capability name="cortanaPermissions"/>

Berlaku untuk

Lihat juga