'AddHandler'、'RemoveHandler' 和 'RaiseEvent' 方法上的規範無效

更新:2007 年 11 月

AddHandler、RemoveHandler 和 RaiseEvent 方法宣告無法用 Public 或 ReadOnly 這類關鍵字修飾。只有可以修飾的宣告才能包含這類關鍵字。

錯誤 ID︰BC31135

若要更正這個錯誤

  • 請移除方法宣告中的關鍵字。

請參閱

參考

Event 陳述式

AddHandler

RemoveHandler

RaiseEvent

其他資源

關鍵字 (Visual Basic)

Visual Basic 中的事件