C# Class MailKit.Net.Imap.ImapCommand

An IMAP command.
Afficher le fichier Open project: jstedfast/MailKit Class Usage Examples

Méthodes publiques

Свойство Type Description
RespCodes List

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat System

ImapCommand() public méthode

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.
Résultat System

RegisterUntaggedHandler() public méthode

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.
Résultat void

Step() public méthode

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
Résultat bool

Property Details

RespCodes public_oe property

public List RespCodes
Résultat List