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