RunningDocumentTable::GetHierarchyItem Method (String^)

 

Gets the project that owns the specified document.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
IVsHierarchy^ GetHierarchyItem(
	String^ moniker
)

Parameters

moniker
Type: System::String^

[in] Path to the desired document.

If this method returns null, then no project owns the specified document. Note that this method does not return the item ID of the document within the project, just the IVsHierarchy object that represents the project. To obtain the item ID of the document, call either the FindDocument method or the ParseCanonicalName method.

Return to top
Show: