The links collection object

M

Max Carussi

I have to programmatically manage the links collection object. This object is included in every type of Oulook Item. Actually I can add contacts to this collection with the add method but the remove method returns an error (0xCFE20005).
Sob !!! Sue pls give me a hand
 
M

Max Carussi

By the way. Actually items from the link collection can be removed if the numerical form of the 'Index' parameter is specified in the 'Remove' method. The error is issued if the name is used. The documentation states that either the number or the name may be used as the 'Index' parameter. So the workaround is to enumerate all the items in the collection, find the item whose name matches the one that is to be removed, get the ordinal index and subsequently invoke the 'Remove' method with the number retrieved.
 
M

Max Carussi

The question about my previous post is: is it normal that an error is returned if an item is removed from a Links collection object using its name ? Is it a bug or the documentation is wrong ?
 
S

Sue Mosher [MVP]

I'd say the documentation is wrong.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Max Carussi said:
The question about my previous post is: is it normal that an error is
returned if an item is removed from a Links collection object using its name
? Is it a bug or the documentation is wrong ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top