This documentation is archived and is not being maintained.
IVsTeamExplorer::GetProjectContext Method (IVsUIHierarchy, UInt32)
Visual Studio 2013
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::ProjectContextThe ProjectContext object representing the project context of the specified hierarchy.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: