共用方式為


CortanaActionableInsights 類別

定義

從影像或文字衍生內容深入解析,讓使用者深入了解內容,或根據內容執行動作。

public ref class CortanaActionableInsights sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CortanaActionableInsights final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [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")]
class CortanaActionableInsights final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CortanaActionableInsights
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[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 sealed class CortanaActionableInsights
Public NotInheritable Class CortanaActionableInsights
繼承
Object Platform::Object IInspectable CortanaActionableInsights
屬性

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)
應用程式功能
cortanaSurface

備註

CortanaActionableInsights 類別需要下列專案新增至 Package.appxmanifest:

  • 封裝<>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • 在 [功能] 下<>
    • <rescap:capability name="cortanaSurface"/>

屬性

User

取得與目前 CortanaActionableInsights 對象相關聯的使用者。

方法

GetDefault()

擷取目前使用者的 CortanaActionableInsights 物件。

GetForUser(User)

擷取指定使用者的 CortanaActionableInsights 物件。

IsAvailableAsync()

以異步方式擷取是否可以在使用者的目前系統上產生深入解析。

ShowInsightsAsync(DataPackage)

根據指定的文字和影像內容,以異步方式擷取和顯示見解。

ShowInsightsAsync(DataPackage, CortanaActionableInsightsOptions)

根據指定的文字和影像內容和選項,以異步方式擷取和顯示見解。

ShowInsightsForImageAsync(IRandomAccessStreamReference)

根據指定的影像內容,以異步方式擷取和顯示見解。

ShowInsightsForImageAsync(IRandomAccessStreamReference, CortanaActionableInsightsOptions)

根據指定的影像內容和選項,以異步方式擷取和顯示見解。

ShowInsightsForTextAsync(String)

根據指定的文字內容,以異步方式擷取和顯示見解。

ShowInsightsForTextAsync(String, CortanaActionableInsightsOptions)

根據指定的文字內容和選項,以異步方式擷取和顯示見解。

適用於

另請參閱