ISelectionItemProvider::AddToSelection Method
Adds the current element to the collection of selected items.
Syntax
HRESULT AddToSelection(VOID);
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
If the result of a call to ISelectionItemProvider::AddToSelection is that a single item is selected, then send an element-selected event for that element; otherwise send an element-added-to-selection or element-removed-from-selection event as appropriate. Each event is identified by a GUID listed at GUIDs.
Note This rule does not depend on whether the container allows single or multiple selection, or on what method was used to change the selection. Only the result matters.
See Also