C# Class LumiSoft.Net.Mime.MailboxAddressCollection

Rfc 2822 3.4 mailbox-list. Syntax: 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 ( MailboxAddress mailbox ) : void

Adds a new mailbox to the end of the collection.

Clear ( ) : void

Clears the collection of all mailboxes.

GetEnumerator ( ) : IEnumerator

Gets enumerator.

Insert ( int index, MailboxAddress mailbox ) : void

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

MailboxAddressCollection ( ) : System

Default constructor.

Parse ( string mailboxList ) : void

Parses mailboxes from Rfc 2822 3.4 mailbox-list string. Syntax: mailbox *(',' mailbox).

Remove ( MailboxAddress mailbox ) : void

Removes specified mailbox from the collection.

Remove ( int index ) : void

Removes header field at the specified index from the collection.

ToMailboxListString ( ) : string

Convert addresses to Rfc 2822 mailbox-list string.

this ( int index ) : MailboxAddress

Gets mailbox 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 mailbox to the end of the collection.
public Add ( MailboxAddress mailbox ) : void
mailbox MailboxAddress Mailbox to add.
return void

Clear() public method

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

GetEnumerator() public method

Gets enumerator.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

Insert() public method

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

MailboxAddressCollection() public method

Default constructor.
public MailboxAddressCollection ( ) : System
return System

Parse() public method

Parses mailboxes from Rfc 2822 3.4 mailbox-list string. Syntax: mailbox *(',' mailbox).
public Parse ( string mailboxList ) : void
mailboxList string Mailbox list string.
return void

Remove() public method

Removes specified mailbox from the collection.
public Remove ( MailboxAddress mailbox ) : void
mailbox MailboxAddress Mailbox to remove.
return void

Remove() public method

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

ToMailboxListString() public method

Convert addresses to Rfc 2822 mailbox-list string.
public ToMailboxListString ( ) : string
return string

this() public method

Gets mailbox from specified index.
public this ( int index ) : MailboxAddress
index int
return MailboxAddress