MailAddressCollection Class
Represents a collection of MailAddress elements.
public sealed class MailAddressCollection : Collection<MailAddress>, IList<MailAddress>, ICollection<MailAddress>, IList, ICollection, IReadOnlyList<MailAddress>, IReadOnlyCollection<MailAddress>, IEnumerable<MailAddress>, IEnumerable
Public NotInheritable Class MailAddressCollection
Inherits Collection(Of MailAddress)
Implements IList(Of MailAddress), ICollection(Of MailAddress), IList, ICollection, IReadOnlyList(Of MailAddress), IReadOnlyCollection(Of MailAddress), IEnumerable(Of MailAddress), IEnumerable
- Inheritance:
- MailAddressCollection
Implements
Methods
Add(MailAddress[])
Adds the specified collection of addresses.
public void Add(params MailAddress[] items)
Public Sub Add(ParamArray items As MailAddress())
Parameters
items
- MailAddress[]
The collection whose elements will be added to the end of this MailAddressCollection.
Add(IEnumerable<MailAddress>)
Adds the specified collection of addresses.
public void Add(IEnumerable<MailAddress> items)
Public Sub Add(items As IEnumerable(Of MailAddress))
Parameters
items
- IEnumerable<MailAddress>
The collection whose elements will be added to the end of this MailAddressCollection.
Exceptions
Contains(String)
Determines whether the collection contains the specified mail address.
Parameters
address
- String
The mail address to search for.
Returns
True
if collection contains the specified mail address; otherwise, false
.
Exceptions
Address is null or empty.
ToString()
Returns a String that represents this instance.