共用方式為


ExpectedExceptionAttribute.AllowDerivedTypes 屬性

命名空間:  Microsoft.VisualStudio.TestTools.UnitTesting
組件:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (在 Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 中)

語法

'宣告
Public Property AllowDerivedTypes As Boolean
public bool AllowDerivedTypes { get; set; }
public:
property bool AllowDerivedTypes {
    bool get ();
    void set (bool value);
}
member AllowDerivedTypes : bool with get, set
function get AllowDerivedTypes () : boolean
function set AllowDerivedTypes (value : boolean)

屬性值

型別:System.Boolean

.NET Framework 安全性

請參閱

參考

ExpectedExceptionAttribute 類別

Microsoft.VisualStudio.TestTools.UnitTesting 命名空間