Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the current project context of the specified hierarchy.
Namespace: Microsoft.TeamFoundation.Common
Assembly: Microsoft.VisualStudio.TeamFoundation.Client (in Microsoft.VisualStudio.TeamFoundation.Client.dll)
Syntax
'Declaration
Function GetProjectContext ( _
hierarchy As IVsUIHierarchy, _
itemId As UInteger _
) As ProjectContext
ProjectContext GetProjectContext(
IVsUIHierarchy hierarchy,
uint itemId
)
ProjectContext^ GetProjectContext(
IVsUIHierarchy^ hierarchy,
unsigned int itemId
)
abstract GetProjectContext :
hierarchy:IVsUIHierarchy *
itemId:uint32 -> ProjectContext
function GetProjectContext(
hierarchy : IVsUIHierarchy,
itemId : uint
) : ProjectContext
Parameters
hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchyThe IVsUIHierarchy object representing the hierarchy for which the project context is desired.
itemId
Type: System.UInt32The 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.
.NET Framework Security
- 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.