MailAddressCollection Class
Namespace: Rebex.Mime.Headers
Assembly: Rebex.Mail.dll (version 7.0.9083)
Represents the collection of MailAddress objects.
Syntax
public sealed class MailAddressCollection : HeaderValueCollection, ICollection, IHeader, IEnumerable<MailAddress>, IEnumerable
Inherited Members
Remarks
Represents the mailbox-list
structured header defined by RFC 2822.
Constructors
Name | Description |
---|---|
MailAddressCollection() | Initializes a new instance of MailAddressCollection. |
MailAddressCollection(String) | Initializes a new instance of MailAddressCollection filled with the specified list of mailboxes. |
Properties
Name | Description |
---|---|
Count | Gets the number of items in the collection. Inherited from HeaderValueCollection. |
IsSynchronized | Gets a value indicating whether access to HeaderValueCollection is synchronized (thread-safe). Inherited from HeaderValueCollection. |
Item[Int32] | Gets or sets the MailAddress at the specified index. |
SyncRoot | Gets an object that can be used to synchronize access to HeaderValueCollection object. Inherited from HeaderValueCollection. |
Methods
Name | Description |
---|---|
Add(MailAddress) | Adds a MailAddress to the end of the list. |
Add(String) | Adds an address to the end of the list. |
AddRange(ICollection) | 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. Inherited from HeaderValueCollection. |
Clear() | Removes all items from the list. Inherited from HeaderValueCollection. |
Clone() | Creates a copy of the header. Inherited from HeaderValueCollection. |
CopyTo(MailAddress[], Int32) | Copies the range of elements from the MailAddressCollection to a compatible one-dimensional array, starting at the specified index of the target array. |
CopyTo(Array, Int32) | Copies the range of elements from the HeaderValueCollection to a compatible one-dimensional Array, starting at the specified index of the target array. Inherited from HeaderValueCollection. |
Encode(TextWriter) | Writes an encoded header value into a TextWriter. |
GetEnumerator() | Gets an IEnumerator for the collection. Inherited from HeaderValueCollection. |
RemoveAt(Int32) | Removes the item at the specified index from the list. Inherited from HeaderValueCollection. |
ToString() | Converts the value of this header to its String representation. |
Operators
Name | Description |
---|---|
Implicit(MailAddress to MailAddressCollection) | Converts a MailAddress to a MailAddressCollection. |
Implicit(String to MailAddressCollection) | Converts a String to a MailAddressCollection. |
Explicit Interface Implementations
Name | Description |
---|---|
IEnumerable<MailAddress>.GetEnumerator() | Gets an IEnumerator<T> for the MailAddressCollection collection. |