RemoteDesktopClientActions::ExecuteRemoteAction method
[ExecuteRemoteAction is no longer available for use as of Windows 10 and Windows Server 2016 Technical Preview.]
Causes an action to be performed in the remote session.
Syntax
executeRemoteAction(remoteAction);
Parameters
remoteAction
Type: RemoteActionType**A value of the RemoteActionType enumeration that specifies the action.
Return value
This method does not return a value.
Examples
The following code example, from the Remote Desktop app container client sample, demonstrates how to use the ExecuteRemoteAction method to set perform an action in a remote session.
function sendRemoteAction(actionType) {
WinJS.log && WinJS.log("", "sample", "error");
if (myClientControlObject) {
try {
myClientControlObject.actions.ExecuteRemoteAction(actionType);
} catch (e) {
WinJS.log && WinJS.log("Failed to send the remote action. Error: " + e.number + " " + e.description, "sample", "error");
}
} else {
WinJS.log && WinJS.log("Connect to the remote PC before sending remote action.", "sample", "error");
}
}
Requirements
Minimum supported client |
Windows 8 [Windows Store apps only] |
Minimum supported server |
Windows Server 2012 [Windows Store apps only] |
End of client support |
Windows 8.1 |
End of server support |
Windows Server 2012 R2 |
IDL |
RdpAppContainerClient.idl |
Type library |
MsTscAx.dll |
DLL |
MsTscAx.dll |