MailCommandEventHandler Delegate
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.ReceiveCommandEventSource
The source of the event.
- e
Type: Microsoft.Exchange.Data.Transport.Smtp.MailCommandEventArgs
An instance of the MailCommandEventArgs class that contains the data for the event.