在 PST 中使用 MapiNote
Contents
[
Hide
]
向 PST 添加 MapiNote
使用 Aspose.Email,您可以向已创建或加载的 PST 文件的备注子文件夹中添加 MapiNote。向 PST 添加 MapiNote:
- 使用 Microsoft Outlook 创建模板 MapiNote 并将其保存为 MSG 文件。
- 将已保存的 MSG 笔记加载到 MapiMessage 对象中。
- 创建 MapiNote 对象并加载模板 MSG 笔记。
- 设置 MapiNote 属性。
- 使用 PersonalStorage.Create() 方法创建 PST。
- 通过访问根文件夹并调用 AddMapiMessageItem() 方法,在 PST 文件根目录创建预定义文件夹(Notes)。
以下代码片段展示了如何创建 MapiNote 并将其添加到新建 PST 文件的 notes 文件夹中。