C# Класс MailKit.Net.Imap.ImapCommand

An IMAP command.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
RespCodes List

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

Метод Описание
ImapCommand ( MailKit.Net.Imap.ImapEngine engine, CancellationToken cancellationToken, ImapFolder folder, MimeKit.FormatOptions options, string format ) : System

Initializes a new instance of the MailKit.Net.Imap.ImapCommand class.

Creates a new MailKit.Net.Imap.ImapCommand.

ImapCommand ( MailKit.Net.Imap.ImapEngine engine, CancellationToken cancellationToken, ImapFolder folder, string format ) : System

Initializes a new instance of the MailKit.Net.Imap.ImapCommand class.

Creates a new MailKit.Net.Imap.ImapCommand.

RegisterUntaggedHandler ( string atom, ImapUntaggedHandler handler ) : void

Registers the untagged handler for the specified atom token.

Step ( ) : bool

Sends the next part of the command to the server.

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

Метод Описание
AppendString ( MimeKit.FormatOptions options, bool allowAtom, MemoryStream builder, string value ) : void
CanUseNonSynchronizedLiteral ( long length ) : bool
GetStringType ( string value, bool allowAtom ) : ImapStringType
IsAtom ( char c ) : bool
IsQuotedSafe ( char c ) : bool
UpdateProgress ( int n ) : void

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

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

Initializes a new instance of the MailKit.Net.Imap.ImapCommand class.
Creates a new MailKit.Net.Imap.ImapCommand.
public ImapCommand ( MailKit.Net.Imap.ImapEngine engine, CancellationToken cancellationToken, ImapFolder folder, MimeKit.FormatOptions options, string format ) : System
engine MailKit.Net.Imap.ImapEngine The IMAP engine that will be sending the command.
cancellationToken System.Threading.CancellationToken The cancellation token.
folder ImapFolder The IMAP folder that the command operates on.
options MimeKit.FormatOptions The formatting options.
format string The command format.
Результат System

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

Initializes a new instance of the MailKit.Net.Imap.ImapCommand class.
Creates a new MailKit.Net.Imap.ImapCommand.
public ImapCommand ( MailKit.Net.Imap.ImapEngine engine, CancellationToken cancellationToken, ImapFolder folder, string format ) : System
engine MailKit.Net.Imap.ImapEngine The IMAP engine that will be sending the command.
cancellationToken System.Threading.CancellationToken The cancellation token.
folder ImapFolder The IMAP folder that the command operates on.
format string The command format.
Результат System

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

Registers the untagged handler for the specified atom token.
/// is null. /// -or- /// is null. /// /// Untagged handlers must be registered before the command has been queued. ///
public RegisterUntaggedHandler ( string atom, ImapUntaggedHandler handler ) : void
atom string The atom token.
handler ImapUntaggedHandler The handler.
Результат void

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

Sends the next part of the command to the server.
/// The operation was canceled via the cancellation token. /// /// An I/O error occurred. /// /// An IMAP protocol error occurred. ///
public Step ( ) : bool
Результат bool

Описание свойств

RespCodes публичное свойство

public List RespCodes
Результат List