Outlook items.restrict 给出错误
我正在尝试以编程方式从 Outlook 获取邮件,其中接收时间大于某个时间,例如:
oItems.Restrict("[ReceivedTime] > " + receivedTime.ToString("yyyy-MM-dd HH:mm:ss"));
“receivedTime”是将传递给函数的时间。但它给出了错误。知道如何做到这一点吗?
I am trying to get the mails from outlook by programmatically which received time is greater than a certain time like:
oItems.Restrict("[ReceivedTime] > " + receivedTime.ToString("yyyy-MM-dd HH:mm:ss"));
"receivedTime" is the time which will be passed to the function. But it gives error. Any idea how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在值周围缺少单引号,它应该是
来源:http://msdn.microsoft.com/en-us/library/aa210275(v=office.11).aspx
You are missing single quotes around the value, it should be
Source: http://msdn.microsoft.com/en-us/library/aa210275(v=office.11).aspx