Bagikan melalui


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

See Also

Reference

ExpectedExceptionAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace