無法將屬性 '<attributename>' 套用至組件

更新:2007 年 11 月

嘗試套用屬性 (Attribute) 至組件,而組件的 AttributeUsageAttribute 沒有指定 AttributeTargets.Assembly。宣告屬性 (Attribute) 時,並沒有定義成可套用到組件。

錯誤 ID:BC30548

若要更正這個錯誤

  • 檢查屬性 (Attribute) 宣告並指定 AttributeTargets.Assembly 或 AttributeTargets.All。

請參閱

參考

AttributeUsageAttribute

AttributeTargets