UITechnologyManagerProxy.GetControlSupportLevel 方法
获取此技术管理器的支持级别的元素特定窗口。
框架使用此功能为元素选择正确的技术管理器。
命名空间: Microsoft.VisualStudio.TestTools.UITesting
程序集: Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
语法
声明
Public Overrides Function GetControlSupportLevel ( _
windowHandle As IntPtr _
) As Integer
public override int GetControlSupportLevel(
IntPtr windowHandle
)
public:
virtual int GetControlSupportLevel(
IntPtr windowHandle
) override
abstract GetControlSupportLevel :
windowHandle:IntPtr -> int
override GetControlSupportLevel :
windowHandle:IntPtr -> int
public override function GetControlSupportLevel(
windowHandle : IntPtr
) : int
参数
- windowHandle
类型:System.IntPtr
元素的窗口句柄。
返回值
类型:System.Int32
指示级别的整数支持元素将由此技术管理器。值越大越严格支持。
实现
IUITechnologyManager.GetControlSupportLevel(IntPtr)
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。