Share via


ActionRuntime.CreateInvocationContextWithWindowId(String, WindowId) Method

Definition

Creates an ActionInvocationContext object associated with the specified action and window ID.

public:
 virtual ActionInvocationContext ^ CreateInvocationContextWithWindowId(Platform::String ^ actionId, WindowId invokerWindowId) = CreateInvocationContextWithWindowId;
ActionInvocationContext CreateInvocationContextWithWindowId(winrt::hstring const& actionId, WindowId const& invokerWindowId);
public ActionInvocationContext CreateInvocationContextWithWindowId(string actionId, WindowId invokerWindowId);
function createInvocationContextWithWindowId(actionId, invokerWindowId)
Public Function CreateInvocationContextWithWindowId (actionId As String, invokerWindowId As WindowId) 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.

invokerWindowId
WindowId

A WindowId object specifying the window that invoked the app action.

Returns

A new ActionInvocationContext object.

Applies to