Compartilhar via


CortanaActionableInsights.ShowInsightsForTextAsync Método

Definição

Sobrecargas

ShowInsightsForTextAsync(String)

Recupera e exibe informações de forma assíncrona com base no conteúdo de texto especificado.

ShowInsightsForTextAsync(String, CortanaActionableInsightsOptions)

Recupera e exibe informações de forma assíncrona com base no conteúdo e nas opções de texto especificados.

ShowInsightsForTextAsync(String)

Recupera e exibe informações de forma assíncrona com base no conteúdo de texto especificado.

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

Parâmetros

text
String

Platform::String

winrt::hstring

O texto que define o escopo dos insights retornados.

Retornos

Retorna um objeto IAsyncAction usado para controlar a execução assíncrona. Se o sistema não der suporte à exibição de insights, o método não terá efeito. Um aplicativo pode marcar para esse caso usando o método IsAvailableAsync.

Atributos

Requisitos do Windows

Funcionalidades do aplicativo
cortanaSurface

Comentários

A classe CortanaActionableInsights requer que o seguinte seja adicionado ao Package.appxmanifest:

  • Para Empacotar <>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • Em <Recursos>
    • <rescap:capability name="cortanaSurface"/>

Confira também

Aplica-se a

ShowInsightsForTextAsync(String, CortanaActionableInsightsOptions)

Recupera e exibe informações de forma assíncrona com base no conteúdo e nas opções de texto especificados.

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

Parâmetros

text
String

Platform::String

winrt::hstring

O texto que define o escopo dos insights retornados.

options
CortanaActionableInsightsOptions

As opções que restringem o escopo dos insights retornados.

Retornos

Retorna um objeto IAsyncAction usado para controlar a execução assíncrona. Se o sistema não der suporte à exibição de insights, o método não terá efeito. Um aplicativo pode marcar para esse caso usando o método IsAvailableAsync.

Atributos

Requisitos do Windows

Funcionalidades do aplicativo
cortanaSurface

Comentários

A classe CortanaActionableInsights requer que o seguinte seja adicionado ao Package.appxmanifest:

  • Para Empacotar <>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • Em <Recursos>
    • <rescap:capability name="cortanaSurface"/>

Confira também

Aplica-se a