Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Overriding this method enables an object to respond when selected.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Syntax
'Declaration
Protected Overridable Sub ActivateObjects
'Usage
Me.ActivateObjects()
protected virtual void ActivateObjects()
protected:
virtual void ActivateObjects()
abstract ActivateObjects : unit -> unit
override ActivateObjects : unit -> unit
protected function ActivateObjects()
Remarks
ActivateObjects allows an object to respond when it is selected.
The base implementation of ActivateObjects has no effect on the VSPackage. It is provided so that derived classes can provide an implementation if necessary. To enable ActivateObjects, 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 ISelectionContainer method SelectObjects(UInt32, array<Object[], UInt32) when called with the SELOBJ_ACTIVATE_WINDOW flag.
Notes to Implementers
Override ActivateObjects when 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.