“<typename>”已声明为“MustInherit”,因此不能用作属性

更新:2007 年 11 月

不能将自定义属性类声明为 MustInherit。

**错误 ID:**BC31506

更正此错误

  • 从自定义属性中移除 MustInherit 修饰符。

请参见

参考

AttributeUsageAttribute

其他资源

Visual Basic 中的自定义属性 (Attribute)