PlaybackSettings.MatchExactHierarchy 属性

获取或设置一个值,该值指示是否匹配为搜索此控件而指定的精确层次结构。

命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

语法

声明
Public Property MatchExactHierarchy As Boolean
    Get
    Set
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)

属性值

类型:System.Boolean
如果为查找此控件将搜索该控件的所有上级,则为 true;如果搜索期间将跳过部分上级,则为 false。

备注

每个控件被指定为包含用于搜索的控件的层次结构。 例如,如果一个控件的层次结构为 A;B;C;D,如果寻找到 A 但播放未能找到其下的完整层次结构 B->C->D,那么此属性设置为 false 时将直接在 A 之下搜索 D。

.NET Framework 安全性

请参见

参考

PlaybackSettings 类

Microsoft.VisualStudio.TestTools.UITesting 命名空间