SelectionEventsClass.OnChange Event
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Occurs after the selection model changes.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Public Overridable Event OnChange As _dispSelectionEvents_OnChangeEventHandler
'Usage
Dim instance As SelectionEventsClass
Dim handler As _dispSelectionEvents_OnChangeEventHandler
AddHandler instance.OnChange, handler
public virtual event _dispSelectionEvents_OnChangeEventHandler OnChange
public:
virtual event _dispSelectionEvents_OnChangeEventHandler^ OnChange {
void add (_dispSelectionEvents_OnChangeEventHandler^ value);
void remove (_dispSelectionEvents_OnChangeEventHandler^ value);
}
JScript does not support events.
Implements
_dispSelectionEvents_Event.OnChange
Remarks
Whenever something is selected in the development environment, a model of what the user has selected is created. A change in this model causes the OnChange event to occur.
Examples
Public Sub SelectionEvents_OnChange() Handles SelectionEvents.OnChange
MsgBox("test")
End Sub
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.