共用方式為


UITestErrorEventArgs 建構函式

使用提供的動作和例外狀況,初始化 UITestErrorEventArgs 類別的新執行個體。

命名空間:  Microsoft.VisualStudio.TestTools.UITest.Common
組件:  Microsoft.VisualStudio.TestTools.UITest.Common (在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

語法

'宣告
Public Sub New ( _
    action As UITestAction, _
    ex As Exception _
)
public UITestErrorEventArgs(
    UITestAction action,
    Exception ex
)
public:
UITestErrorEventArgs(
    UITestAction^ action, 
    Exception^ ex
)
new : 
        action:UITestAction * 
        ex:Exception -> UITestErrorEventArgs
public function UITestErrorEventArgs(
    action : UITestAction, 
    ex : Exception
)

參數

  • ex
    類型:Exception

    造成事件的 Exception

.NET Framework 安全性

請參閱

參考

UITestErrorEventArgs 類別

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

UITestAction