Partager via


UITechnologyManagerProxy Class

The proxy technology manager class.

Extension plugins must override this and customize their technology manager behavior.

Inheritance Hierarchy

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

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
<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

The UITechnologyManagerProxy type exposes the following members.

Constructors

  Name Description
Protected method UITechnologyManagerProxy Initializes the proxy for the given technology.

Top

Properties

  Name Description
Public property TechnologyName Gets the name of the technology supported by this technology manager. (Overrides UITechnologyManager.TechnologyName.)

Top

Methods

  Name Description
Public method AddEventHandler Adds an event handler. (Overrides UITechnologyManager.AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify).)
Public method AddGlobalEventHandler Adds a global sink to notify actions raised by the plugin (Overrides UITechnologyManager.AddGlobalEventHandler(UITestEventType, IUITestEventNotify).)
Public method CancelStep Cancels any wait or search operation being performed by this technology manager because of call to WaitForReady or Search methods. (Overrides UITechnologyManager.CancelStep().)
Public method ConvertToExtensionElement Conversion of core element to extension element. All plugins extending this proxy technology manager must implement this and create a simple conversion with copy of core technology element and extension manager. Something like : public override IUITechnologyElement ConvertToExtensionElement(IUITechnologyElement coreElement) { ExtensionTechnologyElement extensionElement = new ExtensionTechnologyElement(); extensionElement.ExtensionTechnologyManager = this; extensionElement.CoreTechnologyElement = coreElement; return extensionElement; }
Public method ConvertToThisTechnology Converts the given element of another technology to new element of this technology manager. This is used for operations such as switching between hosted and hosting technologies. (Overrides UITechnologyManager.ConvertToThisTechnology(IUITechnologyElement, Int32%).)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetChildren Gets the enumerator for children of the given IUITechnologyElement. (Overrides UITechnologyManager.GetChildren(IUITechnologyElement, Object).)
Public method GetControlSupportLevel Gets the support level of this technology manager for the elements(s) in the given window. The framework uses this function to select the correct technology manager for the element. (Overrides UITechnologyManager.GetControlSupportLevel(IntPtr).)
Public method GetElementFromNativeElement Gets the element from the given native (underlying) technology element. (Overrides UITechnologyManager.GetElementFromNativeElement(Object).)
Public method GetElementFromPoint Gets the element at the given screen coordinates. (Overrides UITechnologyManager.GetElementFromPoint(Int32, Int32).)
Public method GetElementFromWindowHandle Gets the element from the given window handle. (Overrides UITechnologyManager.GetElementFromWindowHandle(IntPtr).)
Public method GetFocusedElement Gets the focused element that is the element that will receive keyboard events at this instance. (Overrides UITechnologyManager.GetFocusedElement(IntPtr).)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetLastInvocationInfo Gets the information about the most recent invocation of the technology manager. (Overrides UITechnologyManager.GetLastInvocationInfo().)
Public method GetNextSibling Gets the next sibling of the given element in the user interface hierarchy. (Overrides UITechnologyManager.GetNextSibling(IUITechnologyElement).)
Public method GetParent Gets the parent of the given element in the user interface hierarchy. (Overrides UITechnologyManager.GetParent(IUITechnologyElement).)
Public method GetPreviousSibling Gets the previous sibling of the given element in the user interface hierarchy. (Overrides UITechnologyManager.GetPreviousSibling(IUITechnologyElement).)
Public method GetSynchronizationWaiter Gets a synchronization waiter for given UITestEventType on this element. (Overrides UITechnologyManager.GetSynchronizationWaiter(IUITechnologyElement, UITestEventType).)
Public method GetTechnologyManagerProperty Gets the given property of technology manager. (Overrides UITechnologyManager.GetTechnologyManagerProperty(UITechnologyManagerProperty).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method MatchElement (Overrides UITechnologyManager.MatchElement(IUITechnologyElement, Object, Boolean%).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ParseQueryId Parses the query element string and returns the parsedQueryIdCookie that will be used during Search() or MatchElement() or GetChildren() call for either searching or matching or obtaining children that has the same query string. EXT-PROTO1-NOTES: This is required so that the plugin part of the QID is correctly parsed and playback engine later calls into the plugin's MatchElement() again with that plugin part of QID. (Overrides UITechnologyManager.ParseQueryId(String, Object%).)
Public method ProcessMouseEnter Processes the process mouse enter event for the window. (Overrides UITechnologyManager.ProcessMouseEnter(IntPtr).)
Public method RemoveEventHandler Removes an event handler. (Overrides UITechnologyManager.RemoveEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify).)
Public method RemoveGlobalEventHandler Removes a global sink to notifiy actions raised by the plugin (Overrides UITechnologyManager.RemoveGlobalEventHandler(UITestEventType, IUITestEventNotify).)
Public method Search (Overrides UITechnologyManager.Search(Object, IUITechnologyElement, Int32).)
Public method SetTechnologyManagerProperty Sets the given property of technology manager. (Overrides UITechnologyManager.SetTechnologyManagerProperty(UITechnologyManagerProperty, Object).)
Public method StartSession Performs any initialization required by this technology manager for starting a session. (Overrides UITechnologyManager.StartSession(Boolean).)
Public method StopSession Performs any cleanup required by this technology manager for stopping the current session. (Overrides UITechnologyManager.StopSession().)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.UITesting Namespace