HostAdapter.ActivateProjectHostItem Event

Occurs when a host item in the project is activated.

Namespace:  Microsoft.VisualStudio.Tools.Applications.DesignTime
Assembly:  Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0 (in Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0.dll)

Syntax

'Declaration
Public Event ActivateProjectHostItem As ActivateProjectHostItemEventHandler
'Usage
Dim instance As HostAdapter 
Dim handler As ActivateProjectHostItemEventHandler 

AddHandler instance.ActivateProjectHostItem, handler
public event ActivateProjectHostItemEventHandler ActivateProjectHostItem
public:
virtual   event ActivateProjectHostItemEventHandler^ ActivateProjectHostItem {
    void add (ActivateProjectHostItemEventHandler^ value);
    void remove (ActivateProjectHostItemEventHandler^ value);
}
JScript does not support events.

Implements

IVstaHostAdapter.ActivateProjectHostItem

Remarks

This event is raised when you double-click the host item node in Project Explorer, or when you right-click the host item node and then click View Designer.

The ActivateProjectHostItem event is not raised when you right-click the host item node and then click View Code.

ActivateProjectHostItem does not apply to project items that are not host items.

.NET Framework Security

See Also

Reference

HostAdapter Class

HostAdapter Members

Microsoft.VisualStudio.Tools.Applications.DesignTime Namespace