Bagikan melalui


CortanaPermissionsChangeResult Enum

Definisi

Menentukan kemungkinan hasil dari pengaturan izin menggunakan 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
Warisan
CortanaPermissionsChangeResult
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

DisabledByPolicy 2

Perubahan pada pengaturan tidak diizinkan.

Success 0

Pengaturan semua izin berhasil.

Unavailable 1

Gagal menyetel satu atau beberapa izin.

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"/>
  • "iot" ke daftar IgnorableNamespaces

    • <iot:Capability Name="systemManagement"/>

Berlaku untuk

Lihat juga