Inserts a new item into the collection at the given index.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'宣言
Public Sub Insert ( _
index As Integer, _
item As GlobalObject _
)
'使用
Dim instance As GlobalObjectCollection
Dim index As Integer
Dim item As GlobalObject
instance.Insert(index, item)
public void Insert(
int index,
GlobalObject item
)
public:
void Insert(
int index,
GlobalObject^ item
)
public function Insert(
index : int,
item : GlobalObject
)
Parameters
index
Type: System.Int32The position in the collection where the item should be inserted.
item
Type: Microsoft.VisualStudio.Shell.Design.GlobalObjectThe item to be inserted.
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.