SmtpBeginDisconnect Method |
Note: This API is now obsolete.
Begins an asynchronous request for a disconnection from the server.
Namespace: MailBee.SmtpMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax [ObsoleteAttribute("This method is obsolete in .NET 4.5+. Use DisconnectAsync instead.")]
public IAsyncResult BeginDisconnect(
AsyncCallback callback,
Object state
)
<ObsoleteAttribute("This method is obsolete in .NET 4.5+. Use DisconnectAsync instead.")>
Public Function BeginDisconnect (
callback As AsyncCallback,
state As Object
) As IAsyncResult
Parameters
- callback
- Type: SystemAsyncCallback
The AsyncCallback delegate. You can leave it a null reference
(Nothing in Visual Basic) if you do not use callbacks. - state
- Type: SystemObject
An object that contains state information for this request.
You can leave it a null reference (Nothing in Visual Basic).
Return Value
Type:
IAsyncResultAn
IAsyncResult that references the asynchronous disconnection.
Exceptions Remarks This method is an asynchronous version of
Disconnect.
See Also