Share via


SmtpReceiveAgent.OnAuthCommand Event

The OnAuthCommand event occurs when the server receives a Simple Mail Transfer Protocol (SMTP) AUTH command and before the server responds to the command.

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

Syntax

'Declaration
Protected Event OnAuthCommand As AuthCommandEventHandler
protected event AuthCommandEventHandler OnAuthCommand
protected:
event AuthCommandEventHandler^ OnAuthCommand {
    void add (AuthCommandEventHandler^ value);
    void remove (AuthCommandEventHandler^ value);
}
/** @event */
protected void add_OnAuthCommand (AuthCommandEventHandler value)

/** @event */
protected void remove_OnAuthCommand (AuthCommandEventHandler 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