Bagikan melalui


CortanaSettings.GetDefault Metode

Definisi

Mengambil pengaturan Cortana untuk pengguna saat ini.

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

Mengembalikan

Objek CortanaSettings.

Atribut

Keterangan

Kelas CortanaSettings mengharuskan hal berikut ditambahkan ke Package.appmanifest:

  • Ke <Paket>
    • IgnorableNamespaces="iot"
  • Di bawah <Kapabilitas>
    • <iot:Capability Name="systemManagement"/>

Berlaku untuk