Bagikan melalui


CortanaActionableInsights.ShowInsightsAsync Metode

Definisi

Overload

ShowInsightsAsync(DataPackage)

Secara asinkron mengambil dan menampilkan wawasan berdasarkan konten teks dan gambar yang ditentukan.

ShowInsightsAsync(DataPackage, CortanaActionableInsightsOptions)

Secara asinkron mengambil dan menampilkan wawasan berdasarkan konten teks dan gambar dan opsi yang ditentukan.

ShowInsightsAsync(DataPackage)

Secara asinkron mengambil dan menampilkan wawasan berdasarkan konten teks dan gambar yang ditentukan.

public:
 virtual IAsyncAction ^ ShowInsightsAsync(DataPackage ^ datapackage) = ShowInsightsAsync;
/// [Windows.Foundation.Metadata.Overload("ShowInsightsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ShowInsightsAsync(DataPackage const& datapackage);
/// [Windows.Foundation.Metadata.Overload("ShowInsightsAsync")]
/// [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")]
IAsyncAction ShowInsightsAsync(DataPackage const& datapackage);
[Windows.Foundation.Metadata.Overload("ShowInsightsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ShowInsightsAsync(DataPackage datapackage);
[Windows.Foundation.Metadata.Overload("ShowInsightsAsync")]
[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 IAsyncAction ShowInsightsAsync(DataPackage datapackage);
function showInsightsAsync(datapackage)
Public Function ShowInsightsAsync (datapackage As DataPackage) As IAsyncAction

Parameter

datapackage
DataPackage

Konten teks dan gambar yang menentukan cakupan wawasan yang dikembalikan.

Mengembalikan

Mengembalikan objek IAsyncAction yang digunakan untuk mengontrol eksekusi asinkron. Jika sistem tidak mendukung menampilkan wawasan, metode tidak berpengaruh. Aplikasi dapat memeriksa kasus ini menggunakan metode IsAvailableAsync .

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"/>

Lihat juga

Berlaku untuk

ShowInsightsAsync(DataPackage, CortanaActionableInsightsOptions)

Secara asinkron mengambil dan menampilkan wawasan berdasarkan konten teks dan gambar dan opsi yang ditentukan.

public:
 virtual IAsyncAction ^ ShowInsightsAsync(DataPackage ^ datapackage, CortanaActionableInsightsOptions ^ options) = ShowInsightsAsync;
/// [Windows.Foundation.Metadata.Overload("ShowInsightsWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ShowInsightsAsync(DataPackage const& datapackage, CortanaActionableInsightsOptions const& options);
/// [Windows.Foundation.Metadata.Overload("ShowInsightsWithOptionsAsync")]
/// [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")]
IAsyncAction ShowInsightsAsync(DataPackage const& datapackage, CortanaActionableInsightsOptions const& options);
[Windows.Foundation.Metadata.Overload("ShowInsightsWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ShowInsightsAsync(DataPackage datapackage, CortanaActionableInsightsOptions options);
[Windows.Foundation.Metadata.Overload("ShowInsightsWithOptionsAsync")]
[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 IAsyncAction ShowInsightsAsync(DataPackage datapackage, CortanaActionableInsightsOptions options);
function showInsightsAsync(datapackage, options)
Public Function ShowInsightsAsync (datapackage As DataPackage, options As CortanaActionableInsightsOptions) As IAsyncAction

Parameter

datapackage
DataPackage

Konten teks dan gambar yang menentukan cakupan wawasan yang dikembalikan.

options
CortanaActionableInsightsOptions

Opsi yang membatasi cakupan wawasan yang dikembalikan, seperti metadata yang berasal dari konteks sekitar teks dan konten gambar.

Mengembalikan

Mengembalikan objek IAsyncAction yang digunakan untuk mengontrol eksekusi asinkron. Jika sistem tidak mendukung menampilkan wawasan, metode tidak berpengaruh. Aplikasi dapat memeriksa kasus ini menggunakan metode IsAvailableAsync .

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"/>

Lihat juga

Berlaku untuk