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 命名空间