UITechnologyManagerProxy 类

代理技术管理器选件类。

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

继承层次结构

System.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 分析查询元素字符串并返回要使用在搜索过程中parsedQueryIdCookie ()或MatchElement ()或GetChildren ()要求具有相同的查询字符串的搜索或匹配或获取子元素。 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 命名空间