UITestControl.Exists 属性

获取一个值,该值指示此控件是否存在于用户界面中。

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

语法

声明
Public Overridable ReadOnly Property Exists As Boolean
    Get
public virtual bool Exists { get; }
public:
virtual property bool Exists {
    bool get ();
}
abstract Exists : bool
override Exists : bool
function get Exists () : boolean

属性值

类型:System.Boolean
如果此控件存在,则为 true;否则为 false。

.NET Framework 安全性

请参见

参考

UITestControl 类

Microsoft.VisualStudio.TestTools.UITesting 命名空间