CortanaActionableInsights Class
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.
Derives contextual insights from images or text that let the user learn more about the content, or perform an action based on it.
public ref class CortanaActionableInsights sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CortanaActionableInsights final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [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")]
class CortanaActionableInsights final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CortanaActionableInsights
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[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 sealed class CortanaActionableInsights
Public NotInheritable Class CortanaActionableInsights
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|
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"/>
Properties
User |
Gets the user associated with the current CortanaActionableInsights object. |
Methods
GetDefault() |
Retrieves a CortanaActionableInsights object for the current user. |
GetForUser(User) |
Retrieves a CortanaActionableInsights object for the specified user. |
IsAvailableAsync() |
Asynchronously retrieves whether insights can be generated on the user's current system. |
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. |
ShowInsightsForImageAsync(IRandomAccessStreamReference, CortanaActionableInsightsOptions) |
Asynchronously retrieves and displays insights based on the specified image content and options. |
ShowInsightsForImageAsync(IRandomAccessStreamReference) |
Asynchronously retrieves and displays insights based on the specified image content. |
ShowInsightsForTextAsync(String, CortanaActionableInsightsOptions) |
Asynchronously retrieves and displays insights based on the specified text content and options. |
ShowInsightsForTextAsync(String) |
Asynchronously retrieves and displays insights based on the specified text content. |