Insert items without performing realignment.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function InsertItems ( _
pNode As IVsLiteTreeList, _
iAfter As UInteger, _
Count As UInteger _
) As Integer
'使用
Dim instance As IVsLiteTree
Dim pNode As IVsLiteTreeList
Dim iAfter As UInteger
Dim Count As UInteger
Dim returnValue As Integer
returnValue = instance.InsertItems(pNode, _
iAfter, Count)
int InsertItems(
IVsLiteTreeList pNode,
uint iAfter,
uint Count
)
int InsertItems(
[InAttribute] IVsLiteTreeList^ pNode,
[InAttribute] unsigned int iAfter,
[InAttribute] unsigned int Count
)
function InsertItems(
pNode : IVsLiteTreeList,
iAfter : uint,
Count : uint
) : int
Parameters
pNode
Type: Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeList[In] Pointer to the IVsLiteTreeList to modify. Using -1 indicates starting at the beginning of the list.
iAfter
Type: System.UInt32[In] Integer index of the after which to insert the new node.
Count
Type: System.UInt32[In] Integer containing the count of nodes inserted.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
Use sparingly to adjust an existing node—don't add a 0 child node and then insert multiple items.
COM Signature
[C++]
From vsshell.idl:
HRESULT IVsLiteTree::InsertItems(
[in] IVsLiteTreeList *pNode,
[in] ULONG iAfter,
[in] ULONG Count
);
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.