[英]Exchange Routing agent - check if email address is an Exchange Distribution List with C#
i'm tring to build a routing agent dll for exchange 2010, that will check if the recipient email address is an Exchange Distribution List. 我正在尝试为Exchange 2010构建路由代理dll,它将检查收件人电子邮件地址是否为Exchange通讯组列表。 if it is, i want to get the email adresses that are part of the distribution list.
如果是,我想获取通讯组列表中的电子邮件地址。
so basically i need two things: 所以基本上我需要两件事:
i'm working on visual studio 2013 with c# , and new working with exchange, what is the namespace/package i should work with to do these things ? 我正在使用c#在Visual Studio 2013上进行工作,而在Exchange上又进行了新工作,我应该使用什么名称空间/程序包来执行这些操作?
thanks. 谢谢。
David. 大卫。
You can use the AddressBook class to do that eg use https://msdn.microsoft.com/en-us/library/office/aa564676(v=exchg.150).aspx which will return https://msdn.microsoft.com/en-us/library/office/microsoft.exchange.data.transport.addressbookentry.recipienttype(v=exchg.150).aspx 您可以使用AddressBook类来执行此操作,例如,使用https://msdn.microsoft.com/zh-cn/library/office/aa564676(v=exchg.150).aspx ,它将返回https://msdn.microsoft。 com / zh-CN / library / office / microsoft.exchange.data.transport.addressbookentry.recipienttype(v = exchg.150).aspx
You can fork or expand the recipients of a message in a Transport Agent https://msdn.microsoft.com/en-us/library/office/microsoft.exchange.data.transport.routing.queuedmessageeventsource.expandrecipients(v=exchg.150).aspx if you want to expand a list that would requires an AD call which can be very costly in terms of performance in a Transport Agent. 您可以在传输代理中派生或扩展邮件的收件人https://msdn.microsoft.com/zh-cn/library/office/microsoft.exchange.data.transport.routing.queuedmessageeventsource.expandrecipients(v=exchg。 150).aspx,如果要扩展一个列表,该列表将需要进行AD调用,这在传输代理中的性能可能会非常昂贵。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.