AutomationRemoteOperationResult.ErrorLocation Property

Definition

Gets an reference to the instruction in the bytecode stream where the remote operation Status does not return Success.

public:
 property int ErrorLocation { int get(); };
int ErrorLocation();
public int ErrorLocation { get; }
var int32 = automationRemoteOperationResult.errorLocation;
Public ReadOnly Property ErrorLocation As Integer

Property Value

Int32

int

Remarks

ErrorLocation specifies the number of the malformed instruction if the remote operation Status returns MalformedBytecode. For example, if the very first instruction contains an invalid opcode, this property returns a value of 0. If the first 5 instructions have valid opcodes and parameters, but the 6th one doesn’t, this property returns a value of 5.

For UnhandledException, this property returns the index of the instruction that raised the exception.

For InstructionLimitExceeded, this property returns the very next instruction to be executed after the limit.

Applies to