Share via


IVsCfgBrowseObject.GetProjectItem(IVsHierarchy, UInt32) Method

Definition

Maps back to the hierarchy or project item object corresponding to the browse object.

public:
 int GetProjectItem([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ % pHier, [Runtime::InteropServices::Out] System::UInt32 % pItemid);
int GetProjectItem([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & & pHier, [Runtime::InteropServices::Out] unsigned int & pItemid);
public int GetProjectItem (out Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, out uint pItemid);
abstract member GetProjectItem : IVsHierarchy * uint32 -> int
Public Function GetProjectItem (ByRef pHier As IVsHierarchy, ByRef pItemid As UInteger) As Integer

Parameters

pHier
IVsHierarchy

[out] Pointer to the hierarchy object.

pItemid
UInt32

[out] Pointer to the project item.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsCfgBrowseObject::GetProjectItem(  
   [out] IVsHierarchy **pHier,  
   [out] VSITEMID *pItemid  
);  

Applies to