 | Pop3CloseAsync(Boolean, CancellationToken) Method |
Sends QUIT command. Disconnects and releases all resources acquired by this object.
Namespace: Limilabs.Client.POP3Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task CloseAsync(
bool throwException,
CancellationToken cancel = default
)
Public Function CloseAsync (
throwException As Boolean,
Optional cancel As CancellationToken = Nothing
) As Task
public:
Task^ CloseAsync(
bool throwException,
CancellationToken cancel = CancellationToken()
)
member CloseAsync :
throwException : bool *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task Parameters
- throwException Boolean
- If true throws Pop3ResponseException on error response to QUIT command.
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskA task that represents the asynchronous close operation.
See Also