Table of Contents

Class EmailRecipientList

Namespace
ArcanaDevelopment.adTempus.Shared
Assembly
ArcanaDevelopment.adTempus.Shared.dll

A collection of email recipients

public class EmailRecipientList : Collection<EmailRecipient>
Inheritance
object
Collection<EmailRecipient>
EmailRecipientList

Constructors

EmailRecipientList()

public EmailRecipientList()

Methods

AddRange(IEnumerable<EmailRecipient>)

Adds all the members from the source collection

public void AddRange(IEnumerable<EmailRecipient> source)

Parameters

NameTypeDescription
source IEnumerable<EmailRecipient>

The collection of recipients to add

FromString(string)

Creates a new EmailRecipientList from a string

public static EmailRecipientList FromString(string source)

Parameters

NameTypeDescription
source string

The string to parse

Returns

EmailRecipientList

Remarks

This method creates a new EmailRecipientList and uses ParseAndAdd(string) to add the source to the list.

ParseAndAdd(string)

Adds one or more email addresses from a string

public void ParseAndAdd(string source)

Parameters

NameTypeDescription
source string

The address or delimited list of addresses to add

Remarks

ParseAndAdd looks for one or more email addresses, separated by ",", ";", or "|" and adds them to the list.

Each recipient included in the list must use one of the following formats:

SerializeToString()

Serializes the list to a pipe-delimited string

public string SerializeToString()

Returns

string

A string containing the members of the list separated by a pipe/vertical bar ("|")

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

ToString(string)

Serializes the list to a string, with entries separated by delimiter

public string ToString(string delimiter)

Parameters

NameTypeDescription
delimiter string

The delimiter to separate entries in the list

Returns

string

A string containing the members of the list separated by delimiter

Extension Methods