ImapResponseCode Constructor

Initialize a new instance of the ImapResponseCode class.

Definition

Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public ImapResponseCode(
	string atom,
	bool isTagged,
	string message
)

Parameters

atom  String
The response code atom, such as "TRYCREATE".
isTagged  Boolean
if the response code was in a tagged response; otherwise, .
message  String
The human-readable text that followed the response code.

Remarks

Creates a new ImapResponseCode for a response code that does not carry any additional data, such as TRYCREATE or OVERQUOTA.

The Type is determined by atom (case-insensitive) and IsError is determined by the Type. Unrecognized atoms are treated as errors.

Exceptions

ArgumentNullException

atom is .

-or-

message is .

ArgumentException

atom is empty.

-or-

atom refers to a response code that is represented by a subclass of ImapResponseCode, such as COPYUID.

See Also