IVsCfgBrowseObject.GetProjectItem(IVsHierarchy, UInt32) Method

Definition

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

C++/WinRT
int GetProjectItem([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & & pHier, [Runtime::InteropServices::Out] unsigned int & pItemid);

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:

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

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022