MailBee.NET Objects 7.1

ElementCollection.Add Method (Element, Int32)

Adds the specified Element object to the collection at the specified index.

public void Add(
   Element elem,
   int index
);

Parameters

elem
The Element object to be added to the collection.
index
The zero-based index where to insert the specified Element object in the collection.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException elem is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException The specified index is not valid.

See Also

ElementCollection Class | MailBee.Html Namespace | ElementCollection.Add Overload List