IObjectWithSelection interface (shobjidl_core.h)

Exposes methods that get or set selected items represented by a Shell item array.

Inheritance

The IObjectWithSelection interface inherits from the IUnknown interface. IObjectWithSelection also has these types of members:

Methods

The IObjectWithSelection interface has these methods.

 
IObjectWithSelection::GetSelection

Gets the Shell item array that contains the selected items.
IObjectWithSelection::SetSelection

Provides the Shell item array that specifies the items included in the selection.

Remarks

When to Implement

This interface is implemented by verbs that implement IExecuteCommand. This allows objects to invoke the verb on the selection through IExecuteCommand::Execute.

When to Use

IObjectWithSelection is used by Windows Explorer to invoke a verb on the selected items. Do not call this interface directly.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)