TestMethodInvokerResult.Exception 属性

获取或设置在调用程序中引发的 Exception

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

语法

声明
Public Property Exception As Exception
    Get
    Set
public Exception Exception { get; set; }
public:
property Exception^ Exception {
    Exception^ get ();
    void set (Exception^ value);
}
member Exception : Exception with get, set
function get Exception () : Exception
function set Exception (value : Exception)

属性值

类型:System.Exception
在调用程序中引发的 Exception

.NET Framework 安全性

请参见

参考

TestMethodInvokerResult 类

Microsoft.VisualStudio.TestTools.UnitTesting 命名空间