Microsoft.VisualStudio.Project.NodeProperties.GetProjectItem C# (CSharp) Method

GetProjectItem() public method

Maps back to the hierarchy or project item object corresponding to the browse object.
public GetProjectItem ( IVsHierarchy &hier, uint &itemid ) : int
hier IVsHierarchy Reference to the hierarchy object.
itemid uint Reference to the project item.
return int
        public virtual int GetProjectItem(out IVsHierarchy hier, out uint itemid)
        {
            if(this.node == null)
            {
                throw new InvalidOperationException();
            }
            hier = HierarchyNode.GetOuterHierarchy(this.node.ProjectMgr);
            itemid = this.node.ID;
            return VSConstants.S_OK;
        }