Version

Insert(Int32,String) Method

Inserts a ListToolItem object into the ListToolItemsCollection at the specified index and with the specified property values.
Syntax
'Declaration
 
Public Overloads Function Insert( _
   ByVal index As Integer, _
   ByVal key As String _
) As ListToolItem
public ListToolItem Insert( 
   int index,
   string key
)

Parameters

index
The index at which to insert the ListToolItem.
key
The unique key to assign to the ListToolItem being inserted.

Return Value

A newly created ListToolItem instance with the specified key which has been added to the collection.
Exceptions
ExceptionDescription
System.ArgumentExceptionkey is null or empty.
System.ArgumentExceptionAn item with a key of key already exists in the collection.
System.ArgumentExceptionindex is less than zero or greater than the Count.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also