Bagikan melalui


CortanaActionableInsights.IsAvailableAsync Metode

Definisi

Secara asinkron mengambil apakah wawasan dapat dihasilkan pada sistem pengguna saat ini.

public:
 virtual IAsyncOperation<bool> ^ IsAvailableAsync() = IsAvailableAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> IsAvailableAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("CortanaActionableInsights is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
IAsyncOperation<bool> IsAvailableAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> IsAvailableAsync();
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("CortanaActionableInsights is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public IAsyncOperation<bool> IsAvailableAsync();
function isAvailableAsync()
Public Function IsAvailableAsync () As IAsyncOperation(Of Boolean)

Mengembalikan

Objek IAsyncOperation yang digunakan untuk mengontrol eksekusi asinkron. IAsyncOperation akan berisi true jika wawasan dapat dihasilkan. Jika tidak, salah.

Atribut

Persyaratan Windows

Kemampuan aplikasi
cortanaSurface

Keterangan

Kelas CortanaActionableInsights mengharuskan hal berikut ditambahkan ke Package.appxmanifest:

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

Berlaku untuk