Adds a range of items contained in the specified collection. The type of items being added has to correspond to the type of collection being updated.

Namespace:  Rebex.Mime.Headers
Assembly:  Rebex.Mail (in Rebex.Mail.dll)

Syntax

Visual Basic
Public Overridable Sub AddRange ( _
	collection As ICollection _
)
C#
public virtual void AddRange(
	ICollection collection
)

Parameters

collection
Type: System.Collections..::..ICollection
Collection of items to be added.

Remarks

For MailAddressCollection only MailAddress items can be added. For MessageIdCollection only MessageId items can be added. And so on.

The implicit conversion from String is not applied.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also