ActionCatalog 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.
Provides APIs for querying for app actions that are registered with the system.
public ref class ActionCatalog sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.Actions.ActionsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ActionCatalog final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.Actions.ActionsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ActionCatalog : System.IDisposable
Public NotInheritable Class ActionCatalog
Implements IDisposable
- Inheritance
- Attributes
- Implements
Windows requirements
| Requirements | Description |
|---|---|
| Device family |
Windows Desktop Extension SDK (introduced in 10.0.26100.0)
|
| API contract |
Windows.AI.Actions.ActionsContract (introduced in v8.0)
|
Remarks
Get an instance of this class by accessing the ActionCatalog property of the ActionRuntime class.
Methods
| Name | Description |
|---|---|
| Close() |
Closes and releases any resources used by this ActionCatalog. |
| Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| GetActionsForCurrentApp() | |
| GetActionsForInputs(ActionEntity[], WindowId) |
Gets an array of action instances for all actions registered with the system that accept the specified list of input entities. This overload also accepts the WindowId associated with the invoker of the action. |
| GetActionsForInputs(ActionEntity[]) |
Gets an array of action instances for all actions registered with the system that accept the specified list of input entities. |
| GetAllActions() |
Gets an array of action definitions for all actions registered with the system. |
Events
| Name | Description |
|---|---|
| Changed |
Raised when the set of app actions registered with the action catalog changes. |