Unpromote a promoted property

Published by David GROSPELIER
Category : BizTalk

When you want to promote a property in the context of a message from a pipeline component, you simply use the Promote method of the Context class.
It is sometimes necessary to keep a property in the context, but to make sure it’s not promoted anymore. For example, this can avoid that the published message is routed to a subscriber.
To “un-promote” a promoted property, simply write the property back in context but this time by using the Write method of the Context class.