ActionInvocationContext Class

Definition

Provides context information related to the invocation of an App Action for Windows.

public ref class ActionInvocationContext sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.Actions.ActionsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ActionInvocationContext final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.Actions.ActionsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ActionInvocationContext : System.IDisposable
Public NotInheritable Class ActionInvocationContext
Implements IDisposable
Inheritance
Object Platform::Object IInspectable ActionInvocationContext
Attributes
Implements

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.26100.0)
API contract
Windows.AI.Actions.ActionsContract (introduced in v4.0)

Properties

ActionId

Gets the ID of the app action for the current invocation.

EntityFactory

Gets a factory class that is used to instantiate entity types.

ExtendedError

Gets or sets the extended error for the app action invocation.

HelpDetails

Gets an object that conveys help information for the app action invocation.

InvokerAppUserModelId

Gets the Application User Model ID (AppUserModelID) for the app from which the app action invocation was initiated.

InvokerWindowId

Gets the identifier for the window from which the app action invocation was initiated.

Result

Gets or sets the result status of an app action invocation.

Methods

Close()

Closes and releases any resources used by this ActionInvocationContext.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetInputEntities()

Gets a list of input entities for the app action being invoked.

GetOutputEntities()

Gets a list of output entities for the app action being invoked.

SetInputEntity(String, ActionEntity)

Sets the input entity for an app action invocation.

SetOutputEntity(String, ActionEntity)

Sets the output entity for an app action invocation.

Applies to