 | Pop3SendMultiLineCommandAsync(String, Boolean, CancellationToken) Method |
Sends command, which expects to receive multi-line response, to POP3 server (e.g. "RETR").
Namespace: Limilabs.Client.POP3Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task<Pop3Response> SendMultiLineCommandAsync(
string command,
bool throwException,
CancellationToken cancel = default
)
Public Function SendMultiLineCommandAsync (
command As String,
throwException As Boolean,
Optional cancel As CancellationToken = Nothing
) As Task(Of Pop3Response)
public:
Task<Pop3Response^>^ SendMultiLineCommandAsync(
String^ command,
bool throwException,
CancellationToken cancel = CancellationToken()
)
member SendMultiLineCommandAsync :
command : string *
throwException : bool *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<Pop3Response> Parameters
- command String
- Command to send e.g. "RETR".
- throwException Boolean
- If true throws Pop3ResponseException on error response
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskPop3ResponseMulti-line response object.
Remarks
Most commands have their own specialized methods in this class, you should probably use them instead.
See Also