EntryPointCollection.Insert Method (2003 System)
Inserts an EntryPoint into the collection at the specified index.
Namespace: Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly: Microsoft.VisualStudio.Tools.Applications.Runtime (in Microsoft.VisualStudio.Tools.Applications.Runtime.dll)
Syntax
'Declaration
Public Sub Insert ( _
index As Integer, _
value As EntryPoint _
)
'Usage
Dim instance As EntryPointCollection
Dim index As Integer
Dim value As EntryPoint
instance.Insert(index, value)
public void Insert(
int index,
EntryPoint value
)
Parameters
- index
Type: System.Int32
The zero-based index at which to insert the EntryPoint.
- value
Type: Microsoft.VisualStudio.Tools.Applications.Runtime.EntryPoint
The EntryPoint to insert into the collection.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than zero. - or - index is greater than Count. |
Remarks
When you insert an item into the collection, the indexes change for subsequent items in the collection.
To add a single EntryPoint to the end of the collection, use the Add method.
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.