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 Property ExceptionType As Type
public Type ExceptionType { get; private set; }
public:
property Type^ ExceptionType {
Type^ get ();
private: void set (Type^ value);
}
member ExceptionType : Type with get, private set
function get ExceptionType () : Type
private function set ExceptionType (value : Type)
Property Value
Type: 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.