How to obtain objects in a category

Unofficial Content
            KBCategory cat = KBCategory.Get(kb.CurrentModel, "Main Programs");
            foreach (KBObject obj in cat.AllMembers)
            {
                MessageBox.Show(KbObject.Name);
            }