Bagikan melalui


CortanaPermissionsManager.GetDefault Metode

Definisi

Mengambil izin Cortana untuk pengguna saat ini.

public:
 static CortanaPermissionsManager ^ GetDefault();
 static CortanaPermissionsManager GetDefault();
/// [Windows.Foundation.Metadata.Deprecated("ICortanaPermissionsManagerStatics is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
 static CortanaPermissionsManager GetDefault();
public static CortanaPermissionsManager GetDefault();
[Windows.Foundation.Metadata.Deprecated("ICortanaPermissionsManagerStatics is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public static CortanaPermissionsManager GetDefault();
function getDefault()
Public Shared Function GetDefault () As CortanaPermissionsManager

Mengembalikan

Atribut

Persyaratan Windows

Kemampuan aplikasi
cortanaPermissions

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