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)
Syntax
'Декларация
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.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.
.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.