C# Class MailKit.Net.Imap.ImapCommand

An IMAP command.
显示文件 Open project: jstedfast/MailKit Class Usage Examples

Public Properties

Property Type Description
RespCodes List

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

ImapCommand() public method

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.
return System

ImapCommand() public method

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.
return System

RegisterUntaggedHandler() public method

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.
return void

Step() public method

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
return bool

Property Details

RespCodes public_oe property

public List RespCodes
return List