CortanaActionableInsights.ShowInsightsForTextAsync Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
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"/>