Parameters
- item
- The item to add to the favorite collection. For example a folder connection or a toolbox.
- index
- The index at which the item is to be inserted.
Return Value
The favorite item. Null if the item cannot be added as a favorite.
You should always check CanAddAsFavorite before passing an item to this method.
Target Platforms: Windows 10, Windows 8.1