recipient.SetRoutingOverride(overridedomain); is Obsolete

Jun 8, 2012 at 6:01 PM

The following line is obsolete in at least Exchange 2010 SP2.  It may be OK for earlier builds.
// OBSOLETE               
//recipient.SetRoutingOverride(overridedomain);
RoutingOverride newRoute = new RoutingOverride(overridedomain , DeliveryQueueDomain.UseOverrideDomain);
source.SetRoutingOverride(recipient, newRoute);

Coordinator
Jun 8, 2012 at 7:09 PM

Welcome to the project.

Yep.  It still works for now, but yes, there's a newer method.

I haven't had time to update the code -- but it does work.

If you want to fix the code, or propose some changes, please do!