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 hierarchy node that is specified by the project GUID.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Declaration
Public Shared Function GetHierarchy ( _
site As IServiceProvider, _
projectGuid As Guid _
) As IVsHierarchy
public static IVsHierarchy GetHierarchy(
IServiceProvider site,
Guid projectGuid
)
public:
static IVsHierarchy^ GetHierarchy(
IServiceProvider^ site,
Guid projectGuid
)
static member GetHierarchy :
site:IServiceProvider *
projectGuid:Guid -> IVsHierarchy
public static function GetHierarchy(
site : IServiceProvider,
projectGuid : Guid
) : IVsHierarchy
Parameters
- site
Type: System.IServiceProvider
IServiceProvider .
- projectGuid
Type: System.Guid
The GUID of the project.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The IVsHierarchy interface of the project.
Remarks
If the project is not open, this method will catch and trace an InvalidCastException.
.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.