Share via


ActionRuntime.CreateInvocationContext(String) Method

Definition

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.

Applies to