Bagikan melalui


CortanaSettings.IsSupported Metode

Definisi

Mengambil apakah pengaturan Cortana didukung.

public:
 static bool IsSupported();
 static bool IsSupported();
/// [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 bool IsSupported();
public static bool IsSupported();
[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 bool IsSupported();
function isSupported()
Public Shared Function IsSupported () As Boolean

Mengembalikan

Boolean

bool

true jika pengaturan Cortana didukung. Jika tidak, salah.

Atribut

Keterangan

Kelas CortanaSettings mengharuskan hal berikut ditambahkan ke Package.appmanifest:

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

Berlaku untuk