UITestControlNotFoundException 构造函数 (PropertyExpressionCollection, PropertyExpressionCollection, String, Exception, String, Object)

使用提供的主要控件属性、次要控件属性、根 UI 控件、UI 测试控件和源初始化 UITestControlNotFoundException 类的新实例。

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

语法

声明
Public Sub New ( _
    primaryProperties As PropertyExpressionCollection, _
    secondaryProperties As PropertyExpressionCollection, _
    root As String, _
    innerException As Exception, _
    uiTestControl As String, _
    exceptionSource As Object _
)
public UITestControlNotFoundException(
    PropertyExpressionCollection primaryProperties,
    PropertyExpressionCollection secondaryProperties,
    string root,
    Exception innerException,
    string uiTestControl,
    Object exceptionSource
)
public:
UITestControlNotFoundException(
    PropertyExpressionCollection^ primaryProperties, 
    PropertyExpressionCollection^ secondaryProperties, 
    String^ root, 
    Exception^ innerException, 
    String^ uiTestControl, 
    Object^ exceptionSource
)
new : 
        primaryProperties:PropertyExpressionCollection * 
        secondaryProperties:PropertyExpressionCollection * 
        root:string * 
        innerException:Exception * 
        uiTestControl:string * 
        exceptionSource:Object -> UITestControlNotFoundException
public function UITestControlNotFoundException(
    primaryProperties : PropertyExpressionCollection, 
    secondaryProperties : PropertyExpressionCollection, 
    root : String, 
    innerException : Exception, 
    uiTestControl : String, 
    exceptionSource : Object
)

参数

  • root
    类型:String

    根元素的 string 表示形式。

  • innerException
    类型:Exception

    导致当前异常的原始异常。

  • uiTestControl
    类型:String

    受阻 UITestControl 的字符串表示形式。

  • exceptionSource
    类型:Object

    作为异常源的 object。

.NET Framework 安全性

请参阅

参考

UITestControlNotFoundException 类

UITestControlNotFoundException 重载

Microsoft.VisualStudio.TestTools.UITest.Extension 命名空间

UITestControl