Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TopLevelElement Class

TopLevelElement Class

Represents a top level element in the UIMap, typically a window.

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)

'Declaration
<SerializableAttribute> _
Public Class TopLevelElement _
	Inherits UIObject

The TopLevelElement type exposes the following members.

  NameDescription
Public methodTopLevelElementInitializes a new instance of the TopLevelElement class.
Top

  NameDescription
Public propertyConditionGets or sets the condition of this object. (Inherited from UIObject.)
Public propertyControlTypeGets or sets the control type of this object. (Inherited from UIObject.)
Public propertyDescendantsGets a collection of all UI objects that are contained within this UI object. (Inherited from UIObject.)
Public propertyFriendlyNameGets or sets a friendly name for this object. (Inherited from UIObject.)
Public propertyIdGets the ID for this object. (Inherited from UIObject.)
Public propertyItemGets the specified UI child object in this object that has the given UI object ID. (Inherited from UIObject.)
Public propertyNameGets or sets the name of the object. (Inherited from UIObject.)
Public propertyQueryIdGets or sets the query ID for this object. (Inherited from UIObject.)
Public propertySearchConfigurationsGets or sets a string array of search configuration. (Inherited from UIObject.)
Public propertySessionIdGets or sets the ID for a top-level element for the recording session. (Inherited from UIObject.)
Public propertySpecialControlTypeGets or sets the special type for this UI object. (Inherited from UIObject.)
Public propertySupportLevelGets or sets the level at which the current technology supports this UI object. (Inherited from UIObject.)
Public propertySupportLevelWrapperGets 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. (Inherited from UIObject.)
Public propertyTechnologyNameGets or sets the name of the technology that supports this UI object. (Inherited from UIObject.)
Public propertyWindowTitlesGets a collection of the titles of the top-level windows. (Inherited from UIObject.)
Top

  NameDescription
Public methodAddAdds the given UI object to the descendents of this UI object, if the given UI object does not already exist. (Inherited from UIObject.)
Public methodBindParametersBinds properties of this UI object to those in the given value map. (Inherited from UIObject.)
Public methodCloneReturns a cloned copy of this top level element. (Overrides UIObject.Clone.)
Public methodContainsIndicates whether the UI object that is identified by the provided ID is contained among the descendents of this UI object. (Inherited from UIObject.)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetQueryStringReturns the query ID for this top level element. (Overrides UIObject.GetQueryString.)
Public methodGetQueryString(String)Returns the query ID of the contained UI object that is specified by the given partial ID. (Inherited from UIObject.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetUIObjectFromIdReturns a contained UI object that is based on the provided ID. (Inherited from UIObject.)
Public methodGetUIObjectFromPartialUIObjectIdReturns a UI object that is contained in this UI object by using the provided partial ID. (Inherited from UIObject.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodParameterizePropertyParameterizes the given property by using the given parameter name. (Inherited from UIObject.)
Public methodRemove(String)Removes the specified UI object from the descendent objects in this UI object. (Inherited from UIObject.)
Public methodRemove(UIObject)Removes the provided UI object from the descendent objects in this UI object. (Inherited from UIObject.)
Public methodToStringReturns the query ID of this UI object. (Inherited from UIObject.)
Top

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

Community Additions

ADD
Show:
© 2015 Microsoft