GetProjectItem Method
Maps back to the hierarchy or project item object corresponding to the browse object.
Namespace: Microsoft.VisualStudio.Data.Tools.Package.Project.Internal
Assembly: Microsoft.VisualStudio.Data.Tools.Package (in Microsoft.VisualStudio.Data.Tools.Package.dll)
Syntax
'Declaration
Public Overridable Function GetProjectItem ( _
<OutAttribute> ByRef hier As IVsHierarchy, _
<OutAttribute> ByRef itemid As UInteger _
) As Integer
'Usage
Dim instance As NodeProperties
Dim hier As IVsHierarchy
Dim itemid As UInteger
Dim returnValue As Integer
returnValue = instance.GetProjectItem(hier, _
itemid)
public virtual int GetProjectItem(
out IVsHierarchy hier,
out uint itemid
)
public:
virtual int GetProjectItem(
[OutAttribute] IVsHierarchy^% hier,
[OutAttribute] unsigned int% itemid
)
abstract GetProjectItem :
hier:IVsHierarchy byref *
itemid:uint32 byref -> int
override GetProjectItem :
hier:IVsHierarchy byref *
itemid:uint32 byref -> int
public function GetProjectItem(
hier : IVsHierarchy,
itemid : uint
) : int
Parameters
- hier
Type: IVsHierarchy%
Reference to the hierarchy object.
- itemid
Type: System..::..UInt32%
Reference to the project item.
Return Value
Type: System..::..Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsBrowseObjectGetProjectItem(IVsHierarchy%, UInt32%)
See Also
Reference
Microsoft.VisualStudio.Data.Tools.Package.Project.Internal Namespace