使用提供的消息和内部异常初始化 InternalException 类的新实例。
命名空间:  Microsoft.VisualStudio.TestTools.Exceptions
程序集:  Microsoft.VisualStudio.QualityTools.Common(在 Microsoft.VisualStudio.QualityTools.Common.dll 中)
语法
声明
Public Sub New ( _
    msg As String, _
    inner As Exception _
)
public InternalException(
    string msg,
    Exception inner
)
public:
InternalException(
    String^ msg, 
    Exception^ inner
)
new : 
        msg:string * 
        inner:Exception -> InternalException
public function InternalException(
    msg : String, 
    inner : Exception
)
参数
- msg
 类型:System.String
 描述该异常的消息。
- inner
 类型:System.Exception
 导致当前异常的异常。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。