Windows.UI.Xaml.Automation 命名空间

定义 Microsoft UI 自动化基础结构的支持类型。 Defines the support types for Microsoft UI Automation infrastructure. 这些支持类型用于实现 Microsoft UI 自动化对自定义控件的支持。 These support types are for implementing Microsoft UI Automation support for a custom control.

ElementNotAvailableException

该异常是在尝试访问与不再可用的某个用户界面部分对应的 UI 自动化元素时引发的。The exception that is thrown when an attempt is made to access a UI automation element corresponding to a part of the user interface that is no longer available.

ElementNotEnabledException

尝试通过 UI 自动化操作未启用的控件时所引发的异常。The exception that is thrown when an attempt is made through UI automation to manipulate a control that is not enabled.

注解

此命名空间文档仅包含投影不同于 WinRT 类型的 Windows 运行时(WinRT)类型的 .NET 投影。This namespace documentation contains only .NET projections of Windows Runtime (WinRT) types where the projection differs from the WinRT type. 若要查看此命名空间的完整类型列表,请参阅 UWP API 参考中的Windows。To see the complete list of types for this namespace, see Windows.UI.Xaml.Automation in the UWP API reference.