Hunny Software Library Reference

Imap4Client.CommandStatus Property

Returns the status of the last command.

[Visual Basic]
Public ReadOnly Property CommandStatus As Imap4StatusCode
[C#]
public Imap4StatusCode CommandStatus {get;}

Property Value

Imap4StatusCode.OK if the last command succeeded. Imap4StatusCode.NO or Imap4StatusCode.BAD if the last command failed.

Remarks

This is a convenience method which finds the tagged response and returns an indication of success or failure.

In some cases, you may want to examine all the server responses. You may do that by getting the NumResponses property and calling the ResponseAt method.

See Also

Imap4Client Class | Hunny.Mail Namespace