Udostępnij za pośrednictwem


SelectionContainer.ActivateObjects Method

Definition

Overriding this method enables an object to respond when selected.

protected:
 virtual void ActivateObjects();
protected:
 virtual void ActivateObjects();
 virtual void ActivateObjects();
protected virtual void ActivateObjects ();
abstract member ActivateObjects : unit -> unit
override this.ActivateObjects : unit -> unit
Protected Overridable Sub 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 <xref:Microsoft.VisualStudio.Shell.SelectionContainer.Microsoft.VisualStudio.Shell.Interop.ISelectionContainer.SelectObjects%2A> when called with the SELOBJ_ACTIVATE_WINDOW flag.

Notes to Inheritors

Override this methodwhen your VSPackage includes selectable objects that need to respond when activated. The method's default implementation is empty.

Applies to