Share 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
protected event ResolvedMessageEventHandler OnResolvedMessage
protected:
event ResolvedMessageEventHandler^ OnResolvedMessage {
    void add (ResolvedMessageEventHandler^ value);
    void remove (ResolvedMessageEventHandler^ value);
}
/** @event */
protected void add_OnResolvedMessage (ResolvedMessageEventHandler value)

/** @event */
protected void remove_OnResolvedMessage (ResolvedMessageEventHandler value)
JScript supports the use of events, but not the declaration of new ones.

Remarks

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

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003