BrowserFactory.LocateAll 方法
查找所有与提供的搜索属性和筛选器属性匹配的浏览器,并返回这些浏览器的浏览器服务对象的数组。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Extension
程序集: Microsoft.VisualStudio.TestTools.UITest.Extension(在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)
语法
声明
Public MustOverride Function LocateAll ( _
searchProperties As PropertyExpressionCollection, _
filterProperties As PropertyExpressionCollection _
) As BrowserService()
public abstract BrowserService[] LocateAll(
PropertyExpressionCollection searchProperties,
PropertyExpressionCollection filterProperties
)
public:
virtual array<BrowserService^>^ LocateAll(
PropertyExpressionCollection^ searchProperties,
PropertyExpressionCollection^ filterProperties
) abstract
abstract LocateAll :
searchProperties:PropertyExpressionCollection *
filterProperties:PropertyExpressionCollection -> BrowserService[]
public abstract function LocateAll(
searchProperties : PropertyExpressionCollection,
filterProperties : PropertyExpressionCollection
) : BrowserService[]
参数
- searchProperties
类型:Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionCollection
一个 PropertyExpressionCollection 对象,包含搜索属性条件。
- filterProperties
类型:Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionCollection
一个 PropertyExpressionCollection 对象,包含筛选器属性。
返回值
类型:array<Microsoft.VisualStudio.TestTools.UITest.Extension.BrowserService[]
浏览器服务对象的数组。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。