MailBee.NET Objects 3.1

Smtp.BeginDisconnect Method 

Begins an asynchronous request for a disconnection from the server.

public IAsyncResult BeginDisconnect(
   AsyncCallback callback,
   object state
);

Parameters

callback
The AsyncCallback delegate. You can leave it a null reference (Nothing in Visual Basic) if you do not use callbacks.
state
An object that contains state information for this request. You can leave it a null reference (Nothing in Visual Basic).

Return Value

An IAsyncResult that references the asynchronous disconnection.

Remarks

This method is an asynchronous version of Disconnect.

Exceptions

Exception Type Condition
MailBeeInvalidStateException There is already an operation in progress.

See Also

Smtp Class | MailBee.SmtpMail Namespace | Disconnect