AutomationRemoteOperationStatus 枚举

定义

指定 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
继承
AutomationRemoteOperationStatus
属性

Windows 要求

设备系列
Windows 10, version 2104 (在 10.0.20348.0 中引入)
API contract
Windows.UI.UIAutomation.UIAutomationContract (在 v1.0 中引入)

字段

ExecutionFailure 4

泛型执行失败。

使用 AutomationRemoteOperationResult.ExtendedError 属性获取其他信息和诊断。 例如,如果目标应用程序无响应且操作超时,则 ExtendedError 设置为 UIA_E_TIMEOUT。

InstructionLimitExceeded 2

该操作超出了远程操作虚拟机施加的指令限制。

远程操作执行的时间不能过长,无法接管应用程序的 UI 线程, (UI 自动化提供程序) 。

MalformedBytecode 1

Execute 方法中指定的字节码格式不正确。

例如,字节码流包含的字节数可能比预期少,具体取决于分析的指令操作码。

Success 0

操作已成功完成。

UnhandledException 3

远程操作中的单个指令失败,并且未在 try-block 中处理。

例如,如果 UI 自动化提供程序返回错误(如 UIA_E_ELEMENTNOTAVAILABLE),则指令将失败,如果未经处理,则会发生指令评估失败。 使用 AutomationRemoteOperationResult.ExtendedError 属性获取其他信息,并诊断导致失败的错误。

适用于

另请参阅

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