C# Class LumiSoft.Net.Mime.AddressList

Rfc 2822 3.4 address-list. Rfc defines two types of addresses mailbox and group.

address-list syntax: address *("," address).

address syntax: mailbox / group.

mailbox syntax: ['"'dispaly-name'"' ]<localpart@domain>.

group syntax: '"'dispaly-name'":' [mailbox *(',' mailbox)]';'.

Inheritance: IEnumerable
Show file Open project: jeske/StepsDB-alpha Class Usage Examples

Private Properties

Property Type Description
OnCollectionChanged void

Public Methods

Method Description
Add ( Address address ) : void

Adds a new address to the end of the collection.

AddressList ( ) : System

Default constructor.

Clear ( ) : void

Clears the collection of all addresses.

GetEnumerator ( ) : IEnumerator

Gets enumerator.

Insert ( int index, Address address ) : void

Inserts a new address into the collection at the specified location.

Parse ( string addressList ) : void

Parses address-list from string.

Remove ( Address address ) : void

Removes specified address from the collection.

Remove ( int index ) : void

Removes address at the specified index from the collection.

ToAddressListString ( ) : string

Convert addresses to Rfc 2822 address-list string.

this ( int index ) : Address

Gets address from specified index.

Private Methods

Method Description
OnCollectionChanged ( ) : void

This called when collection has changed. Item is added,deleted,changed or collection cleared.

Method Details

Add() public method

Adds a new address to the end of the collection.
public Add ( Address address ) : void
address Address Address to add.
return void

AddressList() public method

Default constructor.
public AddressList ( ) : System
return System

Clear() public method

Clears the collection of all addresses.
public Clear ( ) : void
return void

GetEnumerator() public method

Gets enumerator.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

Insert() public method

Inserts a new address into the collection at the specified location.
public Insert ( int index, Address address ) : void
index int The location in the collection where you want to add the address.
address Address Address to add.
return void

Parse() public method

Parses address-list from string.
public Parse ( string addressList ) : void
addressList string Address list string.
return void

Remove() public method

Removes specified address from the collection.
public Remove ( Address address ) : void
address Address Address to remove.
return void

Remove() public method

Removes address at the specified index from the collection.
public Remove ( int index ) : void
index int Index of the address which to remove.
return void

ToAddressListString() public method

Convert addresses to Rfc 2822 address-list string.
public ToAddressListString ( ) : string
return string

this() public method

Gets address from specified index.
public this ( int index ) : Address
index int
return Address