更新:2007 年 11 月
這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。
僅限 Microsoft 內部使用。
命名空間: EnvDTE
組件: EnvDTE (在 EnvDTE.dll 中)
語法
Event WindowCreated As _dispWindowEvents_WindowCreatedEventHandler
Dim instance As _dispWindowEvents_Event
Dim handler As _dispWindowEvents_WindowCreatedEventHandler
AddHandler instance.WindowCreated, handler
event _dispWindowEvents_WindowCreatedEventHandler WindowCreated
event _dispWindowEvents_WindowCreatedEventHandler^ WindowCreated {
void add (_dispWindowEvents_WindowCreatedEventHandler^ value);
void remove (_dispWindowEvents_WindowCreatedEventHandler^ value);
}
JScript 不支援事件。
使用權限
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。