WebTestException 构造函数 (String, Exception)

使用错误消息和对导致此异常的内部 Exception 的引用来初始化 WebTestException 类的新实例。

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
public WebTestException(
    string message,
    Exception innerException
)
public:
WebTestException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> WebTestException
public function WebTestException(
    message : String, 
    innerException : Exception
)

参数

  • message
    类型:System.String
    解释异常原因的错误信息。

.NET Framework 安全性

请参见

参考

WebTestException 类

WebTestException 重载

Microsoft.VisualStudio.TestTools.WebTesting 命名空间