UIObject Class
Represents an object in the user interface (UI) for the test framework.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.TestTools.UITest.Common.UIMap.UIObject
Microsoft.VisualStudio.TestTools.UITest.Common.UIMap.TopLevelElement
Namespace: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap
Assembly: Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class UIObject _
Implements ICloneable
[SerializableAttribute]
public class UIObject : ICloneable
[SerializableAttribute]
public ref class UIObject : ICloneable
[<SerializableAttribute>]
type UIObject =
class
interface ICloneable
end
public class UIObject implements ICloneable
The UIObject type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UIObject | Initializes a new instance of the UIObject class. |
Top
Properties
Name | Description | |
---|---|---|
Condition | Gets or sets the condition of this object. | |
ControlType | Gets or sets the control type of this object. | |
Descendants | Gets a collection of all UI objects that are contained within this UI object. | |
FriendlyName | Gets or sets a friendly name for this object. | |
Id | Gets the ID for this object. | |
Item | Gets the specified UI child object in this object that has the given UI object ID. | |
Name | Gets or sets the name of the object. | |
QueryId | Gets or sets the query ID for this object. | |
SearchConfigurations | Gets or sets a string array of search configuration. | |
SessionId | Gets or sets the ID for a top-level element for the recording session. | |
SpecialControlType | Gets or sets the special type for this UI object. | |
SupportLevel | Gets or sets the level at which the current technology supports this UI object. | |
SupportLevelWrapper | Gets or sets a string version of the actual level at which the current technology supports this UI object for serialization and deserialization of the SupportLevel property. | |
TechnologyName | Gets or sets the name of the technology that supports this UI object. | |
WindowTitles | Gets a collection of the titles of the top-level windows. |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds the given UI object to the descendents of this UI object, if the given UI object does not already exist. | |
BindParameters | Binds properties of this UI object to those in the given value map. | |
Clone | Returns a copy of this UI object. | |
Contains | Indicates whether the UI object that is identified by the provided ID is contained among the descendents of this UI object. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetQueryString() | Returns the query ID for this UI object. | |
GetQueryString(String) | Returns the query ID of the contained UI object that is specified by the given partial ID. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUIObjectFromId | Returns a contained UI object that is based on the provided ID. | |
GetUIObjectFromPartialUIObjectId | Returns a UI object that is contained in this UI object by using the provided partial ID. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ParameterizeProperty | Parameterizes the given property by using the given parameter name. | |
Remove(String) | Removes the specified UI object from the descendent objects in this UI object. | |
Remove(UIObject) | Removes the provided UI object from the descendent objects in this UI object. | |
ToString | Returns the query ID of this UI object. (Overrides Object.ToString().) |
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.UITest.Common.UIMap Namespace