屬性 '<attributename>' 不可以多次套用

更新:2007 年 11 月

屬性 (Attribute) 只可以套用一次。AttributeUsage 屬性會決定是否可以多次套用屬性。

錯誤 ID︰BC30663

若要更正這個錯誤

  1. 請確定屬性 (Attribute) 只套用了一次。

  2. 如果您使用自行開發的自訂屬性,請考慮變更其 AttributeUsage 屬性,讓這些屬性可以多次使用,如下列範例所示。

    <AttributeUsage(AllowMultiple := True)>
    

請參閱

參考

AttributeUsageAttribute

其他資源

Visual Basic 中的屬性

Visual Basic 中的自訂屬性