SmtpReceiveAgent.OnConnect Event

The OnConnect event occurs when the server receives a Simple Mail Transfer Protocol (SMTP) connection.

Namespace: Microsoft.Exchange.Data.Transport.Smtp
Assembly: Microsoft.Exchange.Data.Transport (in microsoft.exchange.data.transport.dll)

Syntax

'Declaration
Protected Event OnConnect As ConnectEventHandler
protected event ConnectEventHandler OnConnect
protected:
event ConnectEventHandler^ OnConnect {
    void add (ConnectEventHandler^ value);
    void remove (ConnectEventHandler^ value);
}
/** @event */
protected void add_OnConnect (ConnectEventHandler value)

/** @event */
protected void remove_OnConnect (ConnectEventHandler 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