I want to delete a outlook rule with Outlook._Rules.Remove(),but it doesn't seem to work.
VS2010 doesn't show any problem but the rule which name is "AAA" still existes in my Outlook.
// pls read following program
Outlook.Application outlookApp = new Outlook.Application();
Outlook._NameSpace outlookNS = outlookApp.GetNamespace("MAPI");
Outlook.Rules rules = outlookNS.DefaultStore.GetRules();
MessageBox.Show("Rules count is:"+rules.Count);
Outlook._Rule rule = rules[k];