共用方式為


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
)

參數

  • innerException
    型別:System.Exception
    造成目前例外狀況的原始例外狀況。
  • exceptionSource
    型別:System.Object
    object ,這是例外狀況的來源。

.NET Framework 安全性

請參閱

參考

UITestControlNotFoundException 類別

UITestControlNotFoundException 多載

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

UITestControl