Share via


SmtpReceiveAgent.OnDisconnect event

The OnDisconnect event occurs when a Simple Mail Transfer Protocol (SMTP) connection to the server is closed.

Namespace:  Microsoft.Exchange.Data.Transport.Smtp
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Protected Event OnDisconnect As DisconnectEventHandler
'Usage
Dim handler As DisconnectEventHandler

AddHandler Me.OnDisconnect, handler
protected event DisconnectEventHandler OnDisconnect

See also

Reference

SmtpReceiveAgent class

SmtpReceiveAgent members

Microsoft.Exchange.Data.Transport.Smtp namespace