InternalTestFailureException 构造函数 (String, Exception)

使用指定错误信息和对作为此异常原因的内部异常的引用来初始化 InternalTestFailureException 类的新实例。

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

语法

声明
Public Sub New ( _
    msg As String, _
    ex As Exception _
)
public InternalTestFailureException(
    string msg,
    Exception ex
)
public:
InternalTestFailureException(
    String^ msg, 
    Exception^ ex
)
new : 
        msg:string * 
        ex:Exception -> InternalTestFailureException
public function InternalTestFailureException(
    msg : String, 
    ex : Exception
)

参数

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

.NET Framework 安全性

请参见

参考

InternalTestFailureException 类

InternalTestFailureException 重载

Microsoft.VisualStudio.TestTools.UnitTesting 命名空间