Export (0) Print
Expand All

IObjectWithSelection interface

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

Members

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

Methods

The IObjectWithSelection interface has these methods.

MethodDescription
GetSelection

Gets the Shell item array that contains the selected items.

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

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft