• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class InternetAddressList

A list of InternetAddress objects, typically used for the From, To, Cc, Bcc, or Reply-To header fields.

Inheritance
object
InternetAddressList
Implements
IEnumerable<InternetAddress>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.Mime
Assembly: DRIT.Mail.dll
Syntax
public sealed class InternetAddressList : IEnumerable<InternetAddress>, IEnumerable

Constructors

View Source

InternetAddressList()

Initializes a new empty InternetAddressList.

Declaration
public InternetAddressList()
View Source

InternetAddressList(IEnumerable<InternetAddress>)

Initializes a new InternetAddressList containing the specified addresses.

Declaration
public InternetAddressList(IEnumerable<InternetAddress> addresses)
Parameters
Type Name Description
IEnumerable<InternetAddress> addresses

Specifies the addresses value.

Properties

View Source

Count

Gets the number of addresses in the list.

Declaration
public int Count { get; }
Property Value
Type Description
int
View Source

Mailboxes

Gets all MailboxAddress entries in this list, flattening any GroupAddress members.

Declaration
public IReadOnlyList<MailboxAddress> Mailboxes { get; }
Property Value
Type Description
IReadOnlyList<MailboxAddress>

Methods

View Source

Add(InternetAddress)

Adds an address to the list.

Declaration
public void Add(InternetAddress address)
Parameters
Type Name Description
InternetAddress address

Specifies the address value.

View Source

AddRange(IEnumerable<InternetAddress>)

Adds multiple addresses to the list.

Declaration
public void AddRange(IEnumerable<InternetAddress> addresses)
Parameters
Type Name Description
IEnumerable<InternetAddress> addresses

Specifies the addresses value.

View Source

GetEnumerator()

Gets the enumerator.

Declaration
public IEnumerator<InternetAddress> GetEnumerator()
Returns
Type Description
IEnumerator<InternetAddress>

Implements

IEnumerable<T>
IEnumerable
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX