FlavoredProject.IVsUIHierarchy.GetNestedHierarchy Method
Determines whether or not a node is a nested hierarchy.
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'宣言
Private Function GetNestedHierarchy ( _
itemid As UInteger, _
ByRef iidHierarchyNested As Guid, _
<OutAttribute> ByRef ppHierarchyNested As IntPtr, _
<OutAttribute> ByRef pitemidNested As UInteger _
) As Integer Implements IVsUIHierarchy.GetNestedHierarchy
'使用
Dim instance As FlavoredProject
Dim itemid As UInteger
Dim iidHierarchyNested As Guid
Dim ppHierarchyNested As IntPtr
Dim pitemidNested As UInteger
Dim returnValue As Integer
returnValue = CType(instance, IVsUIHierarchy).GetNestedHierarchy(itemid, _
iidHierarchyNested, ppHierarchyNested, _
pitemidNested)
int IVsUIHierarchy.GetNestedHierarchy(
uint itemid,
ref Guid iidHierarchyNested,
out IntPtr ppHierarchyNested,
out uint pitemidNested
)
private:
virtual int GetNestedHierarchy(
unsigned int itemid,
Guid% iidHierarchyNested,
[OutAttribute] IntPtr% ppHierarchyNested,
[OutAttribute] unsigned int% pitemidNested
) sealed = IVsUIHierarchy::GetNestedHierarchy
private abstract GetNestedHierarchy :
itemid:uint32 *
iidHierarchyNested:Guid byref *
ppHierarchyNested:IntPtr byref *
pitemidNested:uint32 byref -> int
private override GetNestedHierarchy :
itemid:uint32 *
iidHierarchyNested:Guid byref *
ppHierarchyNested:IntPtr byref *
pitemidNested:uint32 byref -> int
JScript does not support explicit interface implementations.
Parameters
- itemid
Type: System.UInt32
The item ID of the node.
- iidHierarchyNested
Type: System.Guid%
The interface ID of the node.
- ppHierarchyNested
Type: System.IntPtr%
[out] Returns a pointer to the node, if it is a nested hierarchy node.
- pitemidNested
Type: System.UInt32%
[out] Returns the item ID of the nested hierarchy node; this will always be VSITEMID_ROOT.
Return Value
Type: System.Int32
If itemid is not a nested hierarchy node, this method returns [F:Microsoft.VisualStudio.VSConstants.][E_FAIL]. If the requested interface is not supported on the hierarchy object, [F:Microsoft.VisualStudio.VSConstants.][E_NOINTERFACE] is returned. The caller would then treat this node as if it had no children.
Implements
IVsUIHierarchy.GetNestedHierarchy(UInt32, Guid%, IntPtr%, UInt32%)
Remarks
This method calls the GetNestedHierarchy method.
.NET Framework Security
- 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.