Share via


CoreAutomationRemoteOperation.Execute(Byte[]) Method

Definition

Executes a CoreAutomationRemoteOperation on a virtual machine.

public:
 virtual AutomationRemoteOperationResult ^ Execute(Platform::Array <byte> ^ bytecodeBuffer) = Execute;
AutomationRemoteOperationResult Execute(winrt::array_view <byte> const& bytecodeBuffer);
public AutomationRemoteOperationResult Execute(byte[] bytecodeBuffer);
function execute(bytecodeBuffer)
Public Function Execute (bytecodeBuffer As Byte()) As AutomationRemoteOperationResult

Parameters

bytecodeBuffer

Byte[]

byte[]

A 32-bit unsigned integer (little-endian) representing a bytecode version, followed by a stream of bytecode instructions.

Returns

The execution results (status and remote objects) of the CoreAutomationRemoteOperation.

Remarks

This method performs a blocking cross-process call. Do not call from UI or STA threads, as no messages will be pumped while waiting for the response.

If the operation evaluation encounters a failure at any time, objects that were computed (and were in operand registers requested by the client) will be available in the AutomationRemoteOperationResult object.

Do not attempt to execute a remote operation that isn't bound to a process through ImportElement or ImportTextRange.

Applies to