This documentation is archived and is not being maintained.

IVsTeamExplorer::AddToFavorites Method

Adds the specified hierarchy to the list of favorites.

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.VisualStudio.TeamFoundation.Client (in Microsoft.VisualStudio.TeamFoundation.Client.dll)

void AddToFavorites(
	IVsUIHierarchy^ hierarchy, 
	unsigned int itemId
)

Parameters

hierarchy
Type: Microsoft.VisualStudio.Shell.Interop::IVsUIHierarchy

The IVsUIHierarchy object representing the hierarchy to add to favorites.

itemId
Type: System::UInt32

The item ID of the hierarchy to add to favorites.

Show: