VsShellUtilities::GetProject Method (IServiceProvider^, String^)
Visual Studio 2015
Returns a project for the specified document.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
Parameters
- site
-
Type:
System::IServiceProvider^
The IServiceProvider object that is used to retrieve the IVsSolution object.
- moniker
-
Type:
System::String^
The unique identifier of the document in the project system.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^The IVsHierarchy interface of the project that contains the document.
If the document is a file, moniker can be the file extension rather than the full path to the file (for example, .bmp or .txt). If the document is not a file, moniker is often a URL.
Show: