Partager via


RoutingAgent.OnResolvedMessage Event

The OnResolvedMessage event occurs after all the recipients of the message have been resolved and before routing is determined. This member was introduced in Microsoft Exchange Server 2007 Service Pack 1 (SP1).

Namespace:  Microsoft.Exchange.Data.Transport.Routing
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Protected Event OnResolvedMessage As ResolvedMessageEventHandler
'Usage
Dim handler As ResolvedMessageEventHandler

AddHandler Me.OnResolvedMessage, handler
protected event ResolvedMessageEventHandler OnResolvedMessage

Remarks

In the OnResolvedMessage event, you can override the default routing behavior by using the SetRoutingOverride method to set the per-recipient RoutingOverride property.