Sends command and waits for the server response.
Namespace: Limilabs.Client.IMAPAssembly: 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
| Exception | Condition |
|---|---|
| Limilabs.Client..::..ServerException | Throws ServerException on BAD -or- NO response (if 'throwException' is set to true). |