This documentation is archived and is not being maintained.

IVsTeamExplorer::GetProjectContext Method (IVsUIHierarchy, UInt32)

Gets the current project context of the specified hierarchy.

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

ProjectContext^ GetProjectContext(
	IVsUIHierarchy^ hierarchy, 
	unsigned int itemId
)

Parameters

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

The IVsUIHierarchy object representing the hierarchy for which the project context is desired.

itemId
Type: System::UInt32

The item ID of the hierarchy for which the project context is desired.

Return Value

Type: Microsoft.VisualStudio.TeamFoundation::ProjectContext
The ProjectContext object representing the project context of the specified hierarchy.

Show: