Sends command and waits for the server response.

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.12102.1426

Syntax

C#
public ImapResponse SendCommand(
	string command,
	bool throwException
)
Visual Basic
Public Function SendCommand ( _
	command As String, _
	throwException As Boolean _
) As ImapResponse
Visual C++
public:
ImapResponse^ SendCommand(
	String^ command, 
	bool throwException
)

Parameters

command
Type: System..::..String
Command e.g. "NOOP".
throwException
Type: System..::..Boolean
If true throws ServerException on response other then OK

Return Value

IMAP response object.

Remarks

Most commands have their own specialized methods in this class, you should probably use them instead.

Exceptions

ExceptionCondition
Limilabs.Client..::..ServerException Throws ServerException on BAD -or- NO response (if 'throwException' is set to true).

See Also