如何从 Outlook 2007 插件获取 .msg 文件的位置/完整路径属性
我从“我的文档”中打开 .msg 文件,我需要获取 .msg 文件的位置/完整路径。
我这里有一段代码来捕获 MailItem 打开事件,但我不知道下一步要做什么来获取 .msg 文件的位置或完整路径
class MailItemHelper
{
Outlook.MailItem _MailItem = null;
public MailItemHelper(Outlook.MailItem mailItem)
{
_MailItem = mailItem;
((ItemEvents_10_Event)_MailItem).Open += new ItemEvents_10_OpenEventHandler(MailItemHelper_Open);
}
void MailItemHelper_Open(ref bool Cancel)
{
string msgPath = _MailItem.???
}
}
问候
I open the .msg file from My Documents and i need to get the location/fullpath of the .msg file.
I have a piece of code here to capture the MailItem open event but I don't know what to do next to get the location or fullpath of the .msg file
class MailItemHelper
{
Outlook.MailItem _MailItem = null;
public MailItemHelper(Outlook.MailItem mailItem)
{
_MailItem = mailItem;
((ItemEvents_10_Event)_MailItem).Open += new ItemEvents_10_OpenEventHandler(MailItemHelper_Open);
}
void MailItemHelper_Open(ref bool Cancel)
{
string msgPath = _MailItem.???
}
}
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论