Outlook 属性访问器错误: 属性"ttp://schemas.microsoft.com/mapi/proptag/0x7FFE000B"未知或找不到



我正在使用Outlook属性访问器通过电子邮件发送附件。这是我正在使用的代码:

 //check whether attachments are there or not
                            if (mailItem.Attachments.Count > 0)
                            {
                                //loop through all attachments
                                for (int j = 1; j <= mailItem.Attachments.Count; j++)
                                {
                                    //check if attachment is email attachment, then only save to local directory
                                    if (mailItem.Attachments[j].PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x7FFE000B") == false)
                                    {
                                        //save email attachment to local directory
                                        mailItem.Attachments[j].SaveAsFile
                                            (attachmentPath + "\" +
                                            mailItem.Attachments[j].FileName);
                                    }
                                }
                            }

大多数电子邮件的阅读都很好,但是对于其中几封电子邮件,我收到此错误:

属性"ttp://schemas.microsoft.com/mapi/proptag/0x7FFE000B"未知或找不到。

我想知道此错误的修复方法是什么,如果抛出错误,是否有任何解决方法?

它不是附件的必需属性,即并非所有附件都会设置该属性。

DASL 属性名称对应于PR_ATTACHMENT_HIDDEN属性标记。它指示附件是否对最终用户隐藏。

最新更新