Sends command which expects to receive multi-line response e.g. "RETR".
Namespace:
Lesnikowski.ClientAssembly: Mail (in Mail.dll) Version: 3.0.10208.1049
Syntax
| C# |
|---|
public Pop3MultiLineResponse SendMultiLineCommand( string command, bool throwException ) |
| Visual Basic (Declaration) |
|---|
Public Function SendMultiLineCommand ( _ command As String, _ throwException As Boolean _ ) As Pop3MultiLineResponse |
| Visual C++ |
|---|
public: Pop3MultiLineResponse^ SendMultiLineCommand( String^ command, bool throwException ) |
Parameters
- command
- Type: System..::.String
Command to send e.g. "RETR".
- throwException
- Type: System..::.Boolean
If true throws ServerException on -ERR response
Return Value
Multi-line response object.
Remarks
Most commands have their own specialized methods in this class, you should probably use them instead.
Exceptions
| Exception | Condition |
|---|---|
| Lesnikowski.Client..::.ServerException | Throws ServerException on -ERR response (if 'throwException' is set to true). |