共用方式為


OleComponent.AppActivate Event

Namespace:  Microsoft.VisualStudio.PlatformUI.OleComponentSupport
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'宣告
Public Event AppActivate As EventHandler(Of AppActivateEventArgs)
'用途
Dim instance As OleComponent
Dim handler As EventHandler(Of AppActivateEventArgs)

AddHandler instance.AppActivate, handler
public event EventHandler<AppActivateEventArgs> AppActivate
public:
 event EventHandler<AppActivateEventArgs^>^ AppActivate {
    void add (EventHandler<AppActivateEventArgs^>^ value);
    void remove (EventHandler<AppActivateEventArgs^>^ value);
}
member AppActivate : IEvent<EventHandler<AppActivateEventArgs>,
    AppActivateEventArgs>
JScript does not support events.

.NET Framework Security

See Also

Reference

OleComponent Class

OleComponent Members

Microsoft.VisualStudio.PlatformUI.OleComponentSupport Namespace