RoutedMessageEventHandler Delegate
The RoutedMessageEventHandler delegate represents the method that will handle the OnRoutedMessage event of a type derived from the RoutingAgent class.
Namespace: Microsoft.Exchange.Data.Transport.Routing
Assembly: Microsoft.Exchange.Data.Transport (in microsoft.exchange.data.transport.dll)
Syntax
'Declaration
Public Delegate Sub RoutedMessageEventHandler ( _
source As RoutedMessageEventSource, _
e As QueuedMessageEventArgs _
)
public delegate void RoutedMessageEventHandler (
RoutedMessageEventSource source,
QueuedMessageEventArgs e
)
public delegate void RoutedMessageEventHandler (
RoutedMessageEventSource^ source,
QueuedMessageEventArgs^ e
)
/** @delegate */
public delegate void RoutedMessageEventHandler (
RoutedMessageEventSource source,
QueuedMessageEventArgs e
)
JScript supports the use of delegates, but not the declaration of new ones.
Parameters
- source
The source of the event.
- e
An instance of the QueuedMessageEventArgs that contains the event data.
Remarks
When you create a RoutedMessageEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,
Target Platforms
Windows Server 2003