0

我使用 EWS 来管理 Exchange 服务器帐户的电子邮件、联系人、组和日历。

我想添加联系人组。我已经尝试过以下代码。

            ContactGroup myContactGroup = new ContactGroup(service);
            // Give the group a name.
            myContactGroup.DisplayName = "My family";

            // Add some members to the group.
            myContactGroup.Members.Add(new GroupMember("sadie@contoso.com"));
            myContactGroup.Members.Add(new GroupMember("alfred@contoso.com"));

            // Save the group.
            myContactGroup.Save();

但是这种方法适用于 Exchange 2010 及更高版本吗?谁能建议我如何为 Exchange-2007 添加/更新联系人组?

4

1 回答 1

0

On 2007 with EWS the only way to do this is to modify the Extended properties relating to the Members there's an old sample in https://social.technet.microsoft.com/Forums/office/en-US/b01cefad-b8a7-431f-82b1-c0a1ce2b1da8/add-members-to-a-public-distribution-list-programmatically-using-ews?forum=exchangesvrdevelopment

Cheers Glen

于 2015-10-20T02:46:16.637 回答