Partager via


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

'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

  • 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

See Also

Reference

IVsTeamExplorer Interface

GetProjectContext Overload

Microsoft.TeamFoundation.Common Namespace