MailMill .NET Class Library

MailHeaders.AddRange Method 

Adds the elements of an ICollection to the end of the MailHeaders object.

public override void AddRange(
   ICollection c
);

Parameters

c
The ICollection whose elements should be added to the end of the MailHeaders.

Remarks

The elements of the ICollection must be of type DictionaryEntry and the Key of each element must be of type string otherwise an error occurs.

Exceptions

Exception Type Condition
ArgumentNullException c is a null reference (Nothing is Visual Basic).
ArgumentException c does not contain elements of type DictionaryEntry
-or-
the DictionaryEntry does not contain a valid header field.

See Also

MailHeaders Class | MailMill Namespace | System.Collections.ICollection | System.String | System.Collections.DictionaryEntry