Sdílet prostřednictvím


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
protected event DisconnectEventHandler OnDisconnect
protected:
event DisconnectEventHandler^ OnDisconnect {
    void add (DisconnectEventHandler^ value);
    void remove (DisconnectEventHandler^ value);
}
/** @event */
protected void add_OnDisconnect (DisconnectEventHandler value)

/** @event */
protected void remove_OnDisconnect (DisconnectEventHandler value)
JScript supports the use of events, but not the declaration of new ones.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003