CortanaActionableInsights.ShowInsightsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ShowInsightsAsync(DataPackage) |
Asynchronously retrieves and displays insights based on the specified text and image content. |
ShowInsightsAsync(DataPackage, CortanaActionableInsightsOptions) |
Asynchronously retrieves and displays insights based on the specified text and image content and options. |
ShowInsightsAsync(DataPackage)
Asynchronously retrieves and displays insights based on the specified text and image content.
public:
virtual IAsyncAction ^ ShowInsightsAsync(DataPackage ^ datapackage) = ShowInsightsAsync;
/// [Windows.Foundation.Metadata.Overload("ShowInsightsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ShowInsightsAsync(DataPackage const& datapackage);
/// [Windows.Foundation.Metadata.Overload("ShowInsightsAsync")]
/// [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 ShowInsightsAsync(DataPackage const& datapackage);
[Windows.Foundation.Metadata.Overload("ShowInsightsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ShowInsightsAsync(DataPackage datapackage);
[Windows.Foundation.Metadata.Overload("ShowInsightsAsync")]
[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 ShowInsightsAsync(DataPackage datapackage);
function showInsightsAsync(datapackage)
Public Function ShowInsightsAsync (datapackage As DataPackage) As IAsyncAction
Parameters
- datapackage
- DataPackage
The text and image content that defines the scope of the insights returned.
Returns
Returns an IAsyncAction object that is used to control asynchronous execution. If the system does not support showing insights, the method has no effect. An app can check for this case using the IsAvailableAsync method.
- Attributes
Windows requirements
App capabilities |
cortanaSurface
|
Remarks
The CortanaActionableInsights class requires the following be added to the Package.appxmanifest:
- To <Package>
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="rescap"
- Under <Capabilities>
<rescap:capability name="cortanaSurface"/>
See also
Applies to
ShowInsightsAsync(DataPackage, CortanaActionableInsightsOptions)
Asynchronously retrieves and displays insights based on the specified text and image content and options.
public:
virtual IAsyncAction ^ ShowInsightsAsync(DataPackage ^ datapackage, CortanaActionableInsightsOptions ^ options) = ShowInsightsAsync;
/// [Windows.Foundation.Metadata.Overload("ShowInsightsWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ShowInsightsAsync(DataPackage const& datapackage, CortanaActionableInsightsOptions const& options);
/// [Windows.Foundation.Metadata.Overload("ShowInsightsWithOptionsAsync")]
/// [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 ShowInsightsAsync(DataPackage const& datapackage, CortanaActionableInsightsOptions const& options);
[Windows.Foundation.Metadata.Overload("ShowInsightsWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ShowInsightsAsync(DataPackage datapackage, CortanaActionableInsightsOptions options);
[Windows.Foundation.Metadata.Overload("ShowInsightsWithOptionsAsync")]
[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 ShowInsightsAsync(DataPackage datapackage, CortanaActionableInsightsOptions options);
function showInsightsAsync(datapackage, options)
Public Function ShowInsightsAsync (datapackage As DataPackage, options As CortanaActionableInsightsOptions) As IAsyncAction
Parameters
- datapackage
- DataPackage
The text and image content that defines the scope of the insights returned.
- options
- CortanaActionableInsightsOptions
The options that constrain the scope of the insights returned, such as metadata derived from the surrounding context of the text and image content.
Returns
Returns an IAsyncAction object that is used to control asynchronous execution. If the system does not support showing insights, the method has no effect. An app can check for this case using the IsAvailableAsync method.
- Attributes
Windows requirements
App capabilities |
cortanaSurface
|
Remarks
The CortanaActionableInsights class requires the following be added to the Package.appxmanifest:
- To <Package>
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="rescap"
- Under <Capabilities>
<rescap:capability name="cortanaSurface"/>