Platform SDK: Exchange Server

Reading Rule Contents

To read the contents of a rule, simply enumerate through the Rules collection for the instance of the Rule object. Keep in mind that you can only create (IRules::Add) and remove (IRules::Delete) rules where the IRule::Provider property is MSExchange.Rules. However, you can remove all of the rules (IRules::Clear) for all of the providers from the collection.