ImportsEventsClass.ImportRemoved 事件
這個事件可以支援 .NET Framework 基礎結構,但不建議直接使用於您的程式碼中。
在 Imports 陳述式從 Visual Basic 專案移除之後立即發生。
命名空間: VSLangProj
組件: VSLangProj (在 vslangproj.dll 中)
語法
'宣告
Public Event ImportRemoved As _dispImportsEvents_ImportRemovedEventHandler Implements _dispImportsEvents_Event.ImportRemoved
'用途
Dim instance As ImportsEventsClass
Dim handler As _dispImportsEvents_ImportRemovedEventHandler
AddHandler instance.ImportRemoved, handler
public virtual event _dispImportsEvents_ImportRemovedEventHandler _dispImportsEvents_Event.ImportRemoved
public:
virtual event _dispImportsEvents_ImportRemovedEventHandler^ ImportRemoved {
void add (_dispImportsEvents_ImportRemovedEventHandler^ A_1) = _dispImportsEvents_Event::ImportRemoved::add;
void remove (_dispImportsEvents_ImportRemovedEventHandler^ A_1) = _dispImportsEvents_Event::ImportRemoved::remove;
}
J# 可以支援使用明確介面實作,但不允許宣告新的明確介面實作。
JScript 可以支援使用事件,但不允許宣告新的事件。