Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
public virtual event _dispSelectionEvents_OnChangeEventHandler OnChange
public:
virtual event _dispSelectionEvents_OnChangeEventHandler^ OnChange {
void add (_dispSelectionEvents_OnChangeEventHandler^ value);
void remove (_dispSelectionEvents_OnChangeEventHandler^ value);
}
abstract OnChange : IEvent<_dispSelectionEvents_OnChangeEventHandler,
EventArgs>
override OnChange : IEvent<_dispSelectionEvents_OnChangeEventHandler,
EventArgs>
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.