ProviderOptions 枚举


包含用于指定 UI 自动化提供程序类型的值。Contains values that specify the type of UI Automation provider.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class ProviderOptions
public enum ProviderOptions
type ProviderOptions = 
Public Enum ProviderOptions


ClientSideProvider 1

UI 自动化提供程序是客户端提供程序。The UI Automation provider is a client-side provider.

NonClientAreaProvider 4

UI 自动化提供程序是非客户区提供程序。The UI Automation provider is a non-client-area provider.

OverrideProvider 8

UI 自动化提供程序可重写另一个提供程序。The UI Automation provider overrides another provider.

ProviderOwnsSetFocus 16

UI 自动化提供程序可处理其自己的焦点,并且不希望在调用 UI 自动化UI AutomationSetFocus() 代表它将焦点设置到最靠近的窗口。The UI Automation provider handles its own focus, and does not want UI 自动化UI Automation to set focus to the nearest window on its behalf when SetFocus() is called. 提供程序通常将此选项用于看起来可获得焦点而不会实际收到 Win32Win32 焦点的窗口,如菜单和下拉菜单。This option is typically used by providers for windows that appear to take focus without actually receiving Win32Win32 focus, such as menus and drop-down menus.

ServerSideProvider 2

UI 自动化提供程序是服务器端提供程序。The UI Automation provider is a server-side provider.

UseComThreading 32

UI 自动化提供程序需根据 COM 线程处理规则进行调用。The UI Automation provider expects to be called according to COM threading rules. 如果提供程序存在于单线程单元,则将仅在单元线程上调用它。If the provider is in a Single-Threaded Apartment, it will be called only on the apartment thread. 只有服务器端提供程序可以使用此选项。Only Server-side providers can use this option.