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)

根据指定的文本内容和选项异步检索和显示见解。

适用于

另请参阅