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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ExpectedExceptionAttribute Class