Inserts a data field to the collection at the specified index

Namespace:  JHSoftware.SimpleDNSPlus
Assembly:  SDNSAPI (in SDNSAPI)
Version: 1.1.0.0 (1.1.0.0)

Syntax

C#
public void Insert(
	int index,
	string item
)
Visual Basic (Declaration)
Public Sub Insert ( _
	index As Integer, _
	item As String _
)

Parameters

index
Type: System..::.Int32
The zero-based index at which item should be inserted
item
Type: System..::.String
The data field value to insert into the collection

Implements

IList<(Of <(T>)>)..::.Insert(Int32, T)

Remarks

This method is only valid with TXT-records. If index equals the number of data fields in the collection, then item is appended to the end. Data fields that follow the insertion point move down to accommodate the new element. The indexes of the data fields that are moved are also updated.

See Also