WindowEventsClass.WindowCreated 事件
這個應用程式開發介面支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。
發生於建立新視窗時。
命名空間: EnvDTE
組件: EnvDTE (在 EnvDTE.dll 中)
語法
'宣告
Public Overridable Event WindowCreated As _dispWindowEvents_WindowCreatedEventHandler
public virtual event _dispWindowEvents_WindowCreatedEventHandler WindowCreated
public:
virtual event _dispWindowEvents_WindowCreatedEventHandler^ WindowCreated {
void add (_dispWindowEvents_WindowCreatedEventHandler^ value);
void remove (_dispWindowEvents_WindowCreatedEventHandler^ value);
}
abstract WindowCreated : IEvent<_dispWindowEvents_WindowCreatedEventHandler,
EventArgs>
override WindowCreated : IEvent<_dispWindowEvents_WindowCreatedEventHandler,
EventArgs>
JScript 不支援事件。
實作
_dispWindowEvents_Event.WindowCreated
範例
Public Sub WindowEvents_WindowCreated(ByVal Window As EnvDTE.Window) Handles WindowEvents.WindowCreated
MsgBox("test")
End Sub
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。