Share via


PlaybackSettings.MatchExactHierarchy Property

Gets or sets a value to indicate whether to match the exact hierarchy specified for searching this control.

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

Syntax

'Declaration
Public Property MatchExactHierarchy As Boolean
public bool MatchExactHierarchy { get; set; }
public:
property bool MatchExactHierarchy {
    bool get ();
    void set (bool value);
}
member MatchExactHierarchy : bool with get, set
function get MatchExactHierarchy () : boolean 
function set MatchExactHierarchy (value : boolean)

Property Value

Type: Boolean
true if all the ancestors of the control will be searched to locate this control; false if some ancestors will be skipped during the search.

Remarks

Each control is specified as a hierarchy of containing controls for the search. For example, if the hierarchy of a control is A;B;C;D if A is found but playback fails to find full hierarchy B->C->D under it, then directly search for D under A if this property is set to false.

.NET Framework Security

See Also

Reference

PlaybackSettings Class

Microsoft.VisualStudio.TestTools.UITesting Namespace