[E2010] [EWSMA] [C#] [Windows]:使用EWS获取收件箱规则“说明” [英] [E2010] [EWSMA] [C#] [Windows]: Get Inbox Rule 'Description' with EWS

查看:69
本文介绍了[E2010] [EWSMA] [C#] [Windows]:使用EWS获取收件箱规则“说明”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好 -

我正在使用EWS托管API,我希望对收件箱规则进行一些分析。据我所知,Microsoft.Exchange.WebServices.Data.Rule类包含有关每个规则的所有数据。但是,我真的希望能够打印出每个规则的
"描述"。如Outlook中所示。当您转到"管理规则"并单击规则时,此说明将显示在窗口的下半部分。示例描述是:"在消息到达后应用此规则 - 在发件人地址中使用yahoogroups.com
- 将其移至Yahoo文件夹。"

I am working with the EWS Managed API, and am looking to do some analysis on inbox rules. I understand that the Microsoft.Exchange.WebServices.Data.Rule class contains all data about each rule. However, I would really like to be able to print out each rule's "description" as shown in Outlook. This description is shown in the bottom half of the window when you go to 'Manage Rules' and click on a rule. An example description is: "Apply this rule after the message arrives - with yahoogroups.com in the sender's address - move it to the Yahoo folder."

有没有办法通过EWS或其他方式检索这个格式正确的描述规则的字符串?或者我是否需要使用Rule类的各个属性自己构建该字符串?

Is there any way, through EWS or otherwise, to retrieve this nicely formatted string describing the rule? Or do I need to build up that string myself using the individual properties of the Rule class?

任何帮助表示赞赏。

谢谢,

Brett

推荐答案

那描述是由Outlook客户端中的代码生成的,因此您需要自己构建代码以解释规则设置并以您希望的方式显示描述。

That description is produced by code in the Outlook client so you will need to build code yourself to interpret the rule settings and display the description the way you want it.

干杯¥ b $ b Glen

Cheers
Glen


这篇关于[E2010] [EWSMA] [C#] [Windows]:使用EWS获取收件箱规则“说明”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆