UITestControlCollection.Contains 方法

确定 UITestControlCollection 是否包含特定的 UITestControl

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

语法

声明
Public Function Contains ( _
    item As UITestControl _
) As Boolean
public bool Contains(
    UITestControl item
)
public:
virtual bool Contains(
    UITestControl^ item
) sealed
abstract Contains : 
        item:UITestControl -> bool 
override Contains : 
        item:UITestControl -> bool 
public final function Contains(
    item : UITestControl
) : boolean

参数

返回值

类型:System.Boolean
如果 UITestControlCollection 包含指定的 UITestControl,则为 true;否则为 false。

实现

ICollection<T>.Contains(T)

.NET Framework 安全性

请参见

参考

UITestControlCollection 类

Microsoft.VisualStudio.TestTools.UITesting 命名空间