CortanaActionableInsights.ShowInsightsForTextAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ShowInsightsForTextAsync(String) |
基于指定的文本内容异步检索和显示见解。 |
ShowInsightsForTextAsync(String, CortanaActionableInsightsOptions) |
根据指定的文本内容和选项异步检索和显示见解。 |
ShowInsightsForTextAsync(String)
基于指定的文本内容异步检索和显示见解。
public:
virtual IAsyncAction ^ ShowInsightsForTextAsync(Platform::String ^ text) = ShowInsightsForTextAsync;
/// [Windows.Foundation.Metadata.Overload("ShowInsightsForTextAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ShowInsightsForTextAsync(winrt::hstring const& text);
/// [Windows.Foundation.Metadata.Overload("ShowInsightsForTextAsync")]
/// [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 ShowInsightsForTextAsync(winrt::hstring const& text);
[Windows.Foundation.Metadata.Overload("ShowInsightsForTextAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ShowInsightsForTextAsync(string text);
[Windows.Foundation.Metadata.Overload("ShowInsightsForTextAsync")]
[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 ShowInsightsForTextAsync(string text);
function showInsightsForTextAsync(text)
Public Function ShowInsightsForTextAsync (text As String) As IAsyncAction
参数
- text
-
String
Platform::String
winrt::hstring
定义返回的见解范围的文本。
返回
返回用于控制异步执行的 IAsyncAction 对象。 如果系统不支持显示见解,则 方法不起作用。 应用可以使用 IsAvailableAsync 方法为此检查。
- 属性
Windows 要求
应用功能 |
cortanaSurface
|
注解
CortanaActionableInsights 类要求将以下内容添加到 Package.appxmanifest:
- 要 <打包>
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="rescap"
- 在“功能”下<>
<rescap:capability name="cortanaSurface"/>
另请参阅
适用于
ShowInsightsForTextAsync(String, CortanaActionableInsightsOptions)
根据指定的文本内容和选项异步检索和显示见解。
public:
virtual IAsyncAction ^ ShowInsightsForTextAsync(Platform::String ^ text, CortanaActionableInsightsOptions ^ options) = ShowInsightsForTextAsync;
/// [Windows.Foundation.Metadata.Overload("ShowInsightsForTextWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ShowInsightsForTextAsync(winrt::hstring const& text, CortanaActionableInsightsOptions const& options);
/// [Windows.Foundation.Metadata.Overload("ShowInsightsForTextWithOptionsAsync")]
/// [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 ShowInsightsForTextAsync(winrt::hstring const& text, CortanaActionableInsightsOptions const& options);
[Windows.Foundation.Metadata.Overload("ShowInsightsForTextWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ShowInsightsForTextAsync(string text, CortanaActionableInsightsOptions options);
[Windows.Foundation.Metadata.Overload("ShowInsightsForTextWithOptionsAsync")]
[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 ShowInsightsForTextAsync(string text, CortanaActionableInsightsOptions options);
function showInsightsForTextAsync(text, options)
Public Function ShowInsightsForTextAsync (text As String, options As CortanaActionableInsightsOptions) As IAsyncAction
参数
- text
-
String
Platform::String
winrt::hstring
定义返回的见解范围的文本。
- options
- CortanaActionableInsightsOptions
约束返回的见解范围的选项。
返回
返回用于控制异步执行的 IAsyncAction 对象。 如果系统不支持显示见解,则 方法不起作用。 应用可以使用 IsAvailableAsync 方法为此检查。
- 属性
Windows 要求
应用功能 |
cortanaSurface
|
注解
CortanaActionableInsights 类要求将以下内容添加到 Package.appxmanifest:
- 要 <打包>
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="rescap"
- 在“功能”下<>
<rescap:capability name="cortanaSurface"/>