Freigeben über


TestMethodInvokerResult.Exception-Eigenschaft

Ruft das Exception-Element ab, das in der aufrufenden Instanz ausgelöst wird, oder legt es fest.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Property Exception As Exception
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)

Eigenschaftswert

Typ: Exception
Exception, ausgelöst in der aufrufenden Instanz.

.NET Framework-Sicherheit

Siehe auch

Referenz

TestMethodInvokerResult Klasse

Microsoft.VisualStudio.TestTools.UnitTesting-Namespace