ActionOverload 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.
Represents an overload of an app action.
public ref class ActionOverload sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.Actions.ActionsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ActionOverload final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.Actions.ActionsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ActionOverload : System.IDisposable
Public NotInheritable Class ActionOverload
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
App actions can be defined with multiple overloads that take different sets of inputs. This class can be used to select and invoke a specific overload of an app action.
Properties
| Name | Description |
|---|---|
| DescriptionTemplate |
Gets the description template for the app action overload. |
Methods
| Name | Description |
|---|---|
| Close() |
Closes and releases any resources used by this ActionOverload. |
| Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| GetInputs() |
Gets an array of objects describing the input entities accepted by an app action. |
| GetSupportsFeedback() |
Gets a value indicating whether the app action overload supports the app action user feedback mechanism. |
| InvokeAsync(ActionInvocationContext) |
Asynchronously invokes the app action overload. |
| InvokeFeedbackAsync(ActionInvocationContext, ActionFeedback) |
Asynchronously invokes the feedback for the associated action overload. |