Share via


AutomationRemoteOperationStatus Enum

Definition

Specifies the possible execution states of a CoreAutomationRemoteOperation.

public enum class AutomationRemoteOperationStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.UIAutomation.UIAutomationContract, 65536)]
enum class AutomationRemoteOperationStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.UIAutomation.UIAutomationContract), 65536)]
public enum AutomationRemoteOperationStatus
Public Enum AutomationRemoteOperationStatus
Inheritance
AutomationRemoteOperationStatus
Attributes

Windows requirements

Device family
Windows 10, version 2104 (introduced in 10.0.20348.0)
API contract
Windows.UI.UIAutomation.UIAutomationContract (introduced in v1.0)

Fields

ExecutionFailure 4

A generic execution failure.

Use the AutomationRemoteOperationResult.ExtendedError property to get additional information and diagnostics. For example, ExtendedError is set to UIA_E_TIMEOUT if the the target application is unresponsive and the operation times out.

InstructionLimitExceeded 2

The operation exceeded the instruction limit imposed by the remote operation virtual machine.

A remote operation must not execute for so long that it takes over the UI thread of an application (UI Automation provider).

MalformedBytecode 1

The bytecode specified in the Execute method was malformed.

For example, the bytecode stream might contain fewer bytes than expected depending on the instruction opcodes parsed.

Success 0

The operation completed successfully.

UnhandledException 3

A single instruction in the remote operation failed and was not handled in a try-block.

For example, if a UI Automation provider returns an error such as UIA_E_ELEMENTNOTAVAILABLE, the instruction fails and, if left unhandled, an instruction evaluation failure occurs. Use the AutomationRemoteOperationResult.ExtendedError property to get additional information and diagnostics for the error that caused the failure.

Applies to

See also

  • Status
  • <xref:Windows.UI.UIAutomation.Core.AutomationRemoteOperationResult.ErrorLocation+T%3aWindows.UI.UIAutomation.Core.CoreAutomationRemoteOperation>