Hunny Software Library Reference

Headers.InsertFieldAt Method 

Inserts a header field at the specified position.

[Visual Basic]
Public Sub InsertFieldAt( _
   ByVal index As Integer, _
   ByVal field As Field _
)
[C#]
public void InsertFieldAt(
   int index,
   Field field
);

Parameters

index
position in list to insert the Field object (0 <= index <= NumFields)
field
Field object to insert

Remarks

Inserting at position 0 inserts the field at the beginning. Inserting at position NumFields appends the field to the end.

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionindex is out of range

See Also

Headers Class | Hunny.Mime Namespace