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

使用提供的主要控件属性、次要控件属性、内部异常、上一个调用的信息、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, _
    lastInfo As ILastInvocationInfo, _
    uiTestControl As String, _
    exceptionSource As Object _
)
public UITestControlNotFoundException(
    PropertyExpressionCollection primaryProperties,
    PropertyExpressionCollection secondaryProperties,
    string root,
    Exception innerException,
    ILastInvocationInfo lastInfo,
    string uiTestControl,
    Object exceptionSource
)
public:
UITestControlNotFoundException(
    PropertyExpressionCollection^ primaryProperties, 
    PropertyExpressionCollection^ secondaryProperties, 
    String^ root, 
    Exception^ innerException, 
    ILastInvocationInfo^ lastInfo, 
    String^ uiTestControl, 
    Object^ exceptionSource
)
new : 
        primaryProperties:PropertyExpressionCollection * 
        secondaryProperties:PropertyExpressionCollection * 
        root:string * 
        innerException:Exception * 
        lastInfo:ILastInvocationInfo * 
        uiTestControl:string * 
        exceptionSource:Object -> UITestControlNotFoundException
public function UITestControlNotFoundException(
    primaryProperties : PropertyExpressionCollection, 
    secondaryProperties : PropertyExpressionCollection, 
    root : String, 
    innerException : Exception, 
    lastInfo : ILastInvocationInfo, 
    uiTestControl : String, 
    exceptionSource : Object
)

参数

  • root
    类型:System.String
    根元素的 string 表示形式。
  • exceptionSource
    类型:System.Object
    作为异常源的 object。

.NET Framework 安全性

请参见

参考

UITestControlNotFoundException 类

UITestControlNotFoundException 重载

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

ILastInvocationInfo

UITestControl