问题描述
嗨大家好,
我对C#比较陌生,对OC和OC自动化API都很陌生,所以请温柔:-)
我正在写作从Lotus Sametime转换联系人列表并将联系人导入Office Communicator的一段代码。我取得了相当大的成功,但我遇到了一些挫折。
我可以创建所有的联系人和群组,但如果我然后使用API删除联系人和群组,我会遇到问题。删除都是成功的,但似乎删除的联系人/组在某处存储/缓存。
如果我删除用户从联系人列表中,然后尝试通过UI读取该用户我收到一条消息,说"'user1 @ domain.com已经在您的联系人列表中'。但是我无法在任何地方看到它。
如果我重新运行我的人口代码,那么类似的问题。即使我在尝试重新创建组之前检查组的存在(通过迭代'MyGroups'属性),我仍然会看到一个看似无法解决的错误对话框,指出"具有此名称的联系人组已经存在"。非常令人沮丧。
所以 - 几个问题: -
- 这些联系人和团体缓存在某个地方?可以刷新缓存吗?
- 有没有办法在不重复"MyGroups"的情况下抓住一个联系小组?
非常感谢,
汤姆。
Hi folks,
I'm relatively new to C# and very new to OC and the OC automation API so please be gentle :-)
I'm writing a piece of code to translate a list of contacts from Lotus Sametime and import the contacts into Office Communicator. I'm having a decent amount of success but am hitting a couple of frustrations.
I can create all the contacts and groups, but I hit issues if I then use the API to delete the contacts and groups. The deletions are all successful but it seems that deleted contacts/groups are stored/cached somewhere.
If I remove user [email protected] from the contact list, and then try to readd that user via the UI I get a message saying the '[email protected] is already in your contact list'. But I can't see it anywhere.
Similar problems if I then rerun my population code. Even though I check for the existence of a group before attempting to recreate it (by iterating through the 'MyGroups' property) I still get a seemingly untrappable error dialog stating that "A contact group with this name already exists". Very frustrating.
So - several questions:-
- Are these contacts & groups cached somewhere? Can the cache be flushed?
- Is there any way to grab a contact group without iterating through 'MyGroups'?
Many thanks,
Tom.
这篇关于是Office Communicator联系人吗?缓存的群组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!