Gets the hierarchy or project item object corresponding to the browse object.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function GetProjectItem ( _
<OutAttribute> ByRef hier As IVsHierarchy, _
<OutAttribute> ByRef itemid As UInteger _
) As Integer
'使用
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
)
public function GetProjectItem(
hier : IVsHierarchy,
itemid : uint
) : int
Parameters
hier
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy%[out] Returns the IVsHierarchy interface of the hierarchy node's ProjectNode.
itemid
Type: System.UInt32%[out] Returns the item ID.
Return Value
Type: System.Int32
S_OK.
Implements
IVsBrowseObject.GetProjectItem(IVsHierarchy%, UInt32%)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.