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)

No code example is currently available or this language may not be supported.

Parameters

source
Type: Microsoft.Exchange.Data.Transport.Routing.RoutedMessageEventSource

The source of the event.

e
Type: Microsoft.Exchange.Data.Transport.Routing.QueuedMessageEventArgs

An instance of the QueuedMessageEventArgs that contains the event data.

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.

Show: