Share via


ExpectedExceptionAttribute.ExceptionType Property

Gets the expected exception type.

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

Syntax

'Declaration
Public ReadOnly Property ExceptionType As Type
'Usage
Dim instance As ExpectedExceptionAttribute 
Dim value As Type 

value = instance.ExceptionType
public Type ExceptionType { get; }
public:
property Type^ ExceptionType {
    Type^ get ();
}
public function get ExceptionType () : Type

Property Value

Type: System.Type
A Type object.

.NET Framework Security

See Also

Reference

ExpectedExceptionAttribute Class

ExpectedExceptionAttribute Members

Microsoft.VisualStudio.TestTools.UnitTesting Namespace