SelectionContainer.ActivateObjects Method
Overriding this method enables an object to respond when selected.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣告
Protected Overridable Sub ActivateObjects
protected virtual void ActivateObjects()
Remarks
This method allows an object to respond when it is selected.
The base implementation of this methodhas no effect on the VSPackage. It is provided so that derived classes can provide an implementation if necessary. To enable this method, override the base implementation. This protected virtual method is called when the when the selected objects change and need to be ‘activated’. This corresponds to the method SelectObjects when called with the SELOBJ_ACTIVATE_WINDOW flag.
Notes to Implementers
Override this methodwhen your VSPackage includes selectable objects that need to respond when activated. The method's default implementation is empty.
.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.