IRelatedItem interface

Exposes methods that derive related items with specific relationships.


The IRelatedItem interface has these methods.

Method Description
IRelatedItem::GetItem Gets the IShellItem that is related to this item.
IRelatedItem::GetItemIDList Gets the pointer to an item identifier list (PIDL) for the item that is related.


Do not implement this interface directly. This is a base interface (other interfaces derive from it) for a set of interfaces that describes the relationship between two items, (For example IDisplayItem). Do not query for this interface directly, for example, using QueryInterface or IShellFolder::BindToObject. Instead, use the derived interfaces.

An example derivation is the creation of an identity name handler. For more information, see IIdentityName. Other interfaces that may derive from this interface include ICurrentItem, and ITransferMediumItem.


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

See Also