UITechnologyManagerProxy 类

代理技术管理器类。

插件必须重写此扩展和自定义。的技术管理器的行为。

继承层次结构

Object
  Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyManager
    Microsoft.VisualStudio.TestTools.UITesting.UITechnologyManagerProxy

命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

语法

声明
<ComVisibleAttribute(True)> _
Public MustInherit Class UITechnologyManagerProxy _
    Inherits UITechnologyManager
[ComVisibleAttribute(true)]
public abstract class UITechnologyManagerProxy : UITechnologyManager
[ComVisibleAttribute(true)]
public ref class UITechnologyManagerProxy abstract : public UITechnologyManager
[<AbstractClass>]
[<ComVisibleAttribute(true)>]
type UITechnologyManagerProxy =  
    class 
        inherit UITechnologyManager 
    end
public abstract class UITechnologyManagerProxy extends UITechnologyManager

UITechnologyManagerProxy 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 UITechnologyManagerProxy 初始化给定方法的代理。

页首

属性

  名称 说明
公共属性 TechnologyName 获取技术管理器支持技术的名称。 (重写 UITechnologyManager.TechnologyName。)

页首

方法

  名称 说明
公共方法 AddEventHandler 添加事件处理程序。 (重写 UITechnologyManager.AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)。)
公共方法 AddGlobalEventHandler 将全局接收器通知插件引发的操作 (重写 UITechnologyManager.AddGlobalEventHandler(UITestEventType, IUITestEventNotify)。)
公共方法 CancelStep 取消此技术管理器或搜索操作执行的任何等待中由于对 WaitForReady 或搜索方法。 (重写 UITechnologyManager.CancelStep()。)
公共方法 ConvertToExtensionElement 核心元素转换为扩展元素。扩展此代理技术管理器的所有插件必须实现此功能及创建使用核心技术元素和扩展管理器复制的简单转换。内容类似:公共重写 IUITechnologyElement ConvertToExtensionElement (IUITechnologyElement coreElement) {ExtensionTechnologyElement extensionElement = new ExtensionTechnologyElement();这 extensionElement.ExtensionTechnologyManager 为;extensionElement.CoreTechnologyElement = coreElement;返回 extensionElement;}
公共方法 ConvertToThisTechnology 转换其他技术的特定元素。此技术管理器的新元素。 对于操作使用在托管和承载技术之间交换。 (重写 UITechnologyManager.ConvertToThisTechnology(IUITechnologyElement, Int32%)。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetChildren 获取给定 IUITechnologyElement 子项的枚举器。 (重写 UITechnologyManager.GetChildren(IUITechnologyElement, Object)。)
公共方法 GetControlSupportLevel 获取技术管理器支持级别中的元素特定窗口。 框架使用该函数的正确元素选择的技术管理器。 (重写 UITechnologyManager.GetControlSupportLevel(IntPtr)。)
公共方法 GetElementFromNativeElement 从给定本机 (作为) 的技术元素中获取元素。 (重写 UITechnologyManager.GetElementFromNativeElement(Object)。)
公共方法 GetElementFromPoint 获取特定元素在屏幕坐标。 (重写 UITechnologyManager.GetElementFromPoint(Int32, Int32)。)
公共方法 GetElementFromWindowHandle 从特定窗口句柄中获取元素。 (重写 UITechnologyManager.GetElementFromWindowHandle(IntPtr)。)
公共方法 GetFocusedElement 获取元素将收到键盘事件在当前实例中的焦点元素。 (重写 UITechnologyManager.GetFocusedElement(IntPtr)。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetLastInvocationInfo 获取有关技术管理器的新调用的信息。 (重写 UITechnologyManager.GetLastInvocationInfo()。)
公共方法 GetNextSibling 获取给定元素的同级。用户界面层次结构中。 (重写 UITechnologyManager.GetNextSibling(IUITechnologyElement)。)
公共方法 GetParent 获取给定元素的父级。用户界面层次结构中。 (重写 UITechnologyManager.GetParent(IUITechnologyElement)。)
公共方法 GetPreviousSibling 获取给定元素的上一个同级。用户界面层次结构中。 (重写 UITechnologyManager.GetPreviousSibling(IUITechnologyElement)。)
公共方法 GetSynchronizationWaiter 获取给定 UITestEventType 的一个等待同步人员此元素。 (重写 UITechnologyManager.GetSynchronizationWaiter(IUITechnologyElement, UITestEventType)。)
公共方法 GetTechnologyManagerProperty 技术管理器获取特定属性。 (重写 UITechnologyManager.GetTechnologyManagerProperty(UITechnologyManagerProperty)。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 MatchElement (重写 UITechnologyManager.MatchElement(IUITechnologyElement, Object, Boolean%)。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ParseQueryId 分析元素并返回查询字符串将使用在 Search() 期间或 MatchElement() 或 GetChildren() 调用搜索或匹配 (获取子具有相同查询字符串的 parsedQueryIdCookie。 EXT-PROTO1-NOTES:这是必要的,以便 QID 后正确分析和播放引擎调用的插件部分为插件 MatchElement() 不再适用于 QID 该插件部分。 (重写 UITechnologyManager.ParseQueryId(String, Object%)。)
公共方法 ProcessMouseEnter 处理鼠标输入窗口的事件。 (重写 UITechnologyManager.ProcessMouseEnter(IntPtr)。)
公共方法 RemoveEventHandler 移除事件处理程序。 (重写 UITechnologyManager.RemoveEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)。)
公共方法 RemoveGlobalEventHandler 移除全局接收器对插件引发的 notifiy 操作 (重写 UITechnologyManager.RemoveGlobalEventHandler(UITestEventType, IUITestEventNotify)。)
公共方法 Search (重写 UITechnologyManager.Search(Object, IUITechnologyElement, Int32)。)
公共方法 SetTechnologyManagerProperty 技术管理器设置特定属性。 (重写 UITechnologyManager.SetTechnologyManagerProperty(UITechnologyManagerProperty, Object)。)
公共方法 StartSession 此技术管理器执行所需的初始化。所有启动会话。 (重写 UITechnologyManager.StartSession(Boolean)。)
公共方法 StopSession 此技术管理器执行必需的所有清理。停止当前会话。 (重写 UITechnologyManager.StopSession()。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.TestTools.UITesting 命名空间