Compartilhar via


CortanaActionableInsights.IsAvailableAsync Método

Definição

Recupera de forma assíncrona se os insights podem ser gerados no sistema atual do usuário.

public:
 virtual IAsyncOperation<bool> ^ IsAvailableAsync() = IsAvailableAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> IsAvailableAsync();
/// [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")]
IAsyncOperation<bool> IsAvailableAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> IsAvailableAsync();
[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 IAsyncOperation<bool> IsAvailableAsync();
function isAvailableAsync()
Public Function IsAvailableAsync () As IAsyncOperation(Of Boolean)

Retornos

Um objeto IAsyncOperation usado para controlar a execução assíncrona. A IAsyncOperation conterá true se os insights puderem ser gerados. Caso contrário, false.

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

Aplica-se a