如何使用C#将联系人添加到O365分配列表中?
如何使用C#添加/从O365发行列表中添加/删除联系人?
在PowerShell中,可以使用命令add-DistributionGroupmember,从模块ExchangePowershell中删除DistributionGroupmember。
How can I add/remove contacts to/from O365 distribution lists using C#?
In PowerShell this can be done using the commands Add-DistributionGroupMember, Remove-DistributionGroupMember from the module ExchangePowershell.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尚不清楚您想使用哪种技术。有几种方法可以
使用ews,请参阅在Exchange中探索EWS托管的API,EWS和Web服务有关更多信息。
使用Graph API,请参阅与Microsoft Graph中的组一起工作。
It is not clear what technology you would like to use. There are several ways to get the job done in C#:
Automate Outlook from your C# application. See How To: Create a new distribution list item in Outlook for more information. Note, Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment. Read more about that in the Considerations for server-side Automation of Office article.
Use EWS, see Explore the EWS Managed API, EWS, and web services in Exchange for more information.
Use Graph API, see Working with groups in Microsoft Graph.