ActionRuntime.CreateInvocationContext(String) 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.
Creates an ActionInvocationContext object associated with the specified action and window ID.
public:
virtual ActionInvocationContext ^ CreateInvocationContext(Platform::String ^ actionId) = CreateInvocationContext;
ActionInvocationContext CreateInvocationContext(winrt::hstring const& actionId);
public ActionInvocationContext CreateInvocationContext(string actionId);
function createInvocationContext(actionId)
Public Function CreateInvocationContext (actionId As String) As ActionInvocationContext
Parameters
- actionId
-
String
Platform::String
winrt::hstring
The ID of the app action for which the invocation context is created. The action ID is declared in the Action definition JSON file. For more information, see Action definition JSON schema for App Actions on Windows.
Returns
A new ActionInvocationContext object.