C# Класс LumiSoft.Net.Mime.MailboxAddressCollection

Rfc 2822 3.4 mailbox-list. Syntax: mailbox *(',' mailbox).
Наследование: IEnumerable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
OnCollectionChanged void

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
OnCollectionChanged ( ) : void

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

Описание методов

Add() публичный Метод

Adds a new mailbox to the end of the collection.
public Add ( MailboxAddress mailbox ) : void
mailbox MailboxAddress Mailbox to add.
Результат void

Clear() публичный Метод

Clears the collection of all mailboxes.
public Clear ( ) : void
Результат void

GetEnumerator() публичный Метод

Gets enumerator.
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

Insert() публичный Метод

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.
Результат void

MailboxAddressCollection() публичный Метод

Default constructor.
public MailboxAddressCollection ( ) : System
Результат System

Parse() публичный Метод

Parses mailboxes from Rfc 2822 3.4 mailbox-list string. Syntax: mailbox *(',' mailbox).
public Parse ( string mailboxList ) : void
mailboxList string Mailbox list string.
Результат void

Remove() публичный Метод

Removes specified mailbox from the collection.
public Remove ( MailboxAddress mailbox ) : void
mailbox MailboxAddress Mailbox to remove.
Результат void

Remove() публичный Метод

Removes header field at the specified index from the collection.
public Remove ( int index ) : void
index int Index of the mailbox which to remove.
Результат void

ToMailboxListString() публичный Метод

Convert addresses to Rfc 2822 mailbox-list string.
public ToMailboxListString ( ) : string
Результат string

this() публичный Метод

Gets mailbox from specified index.
public this ( int index ) : MailboxAddress
index int
Результат MailboxAddress