共用方式為


無法將 'Microsoft.VisualBasic.ComClassAttribute' 和 '<attribute>' 同時套用至相同的類別

更新:2007 年 11 月

COMClassAttribute 屬性 (Attribute) 區塊是和未套用至 COM 物件的屬性 (Attribute) 一起搭配使用。其中一個可能的原因是混合了 .NET Framework 和 COM 屬性 (Attribute)。

錯誤 ID:BC32501

若要更正這個錯誤

  • 請移除 COMClassAttribute 屬性 (Attribute) 區塊,或是未套用至 COM 的屬性 (Attribute)。

請參閱

概念

Visual Basic 所用的屬性

屬性的應用

參考

ComClassAttribute 類別