Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The MailCommandEventHandler delegate represents the method that will handle the OnMailCommand event in classes that derive from the SmtpReceiveAgent class.
Namespace:  Microsoft.Exchange.Data.Transport.Smtp
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public Delegate Sub MailCommandEventHandler ( _
    source As ReceiveCommandEventSource, _
    e As MailCommandEventArgs _
)
'Usage
Dim instance As New MailCommandEventHandler(AddressOf HandlerMethod)
public delegate void MailCommandEventHandler(
    ReceiveCommandEventSource source,
    MailCommandEventArgs e
)
Parameters
source
Type: Microsoft.Exchange.Data.Transport.Smtp.ReceiveCommandEventSourceThe source of the event.
e
Type: Microsoft.Exchange.Data.Transport.Smtp.MailCommandEventArgsAn instance of the MailCommandEventArgs class that contains the data for the event.