1

我想访问 Lotus Notes 中特定邮件的附件。我正在使用 $File 获取附件名称。

但我想提取此附件并希望将其保存在用户指定的路径中。使用 C#。

4

1 回答 1

3

它应该类似于下面的内容,但不确定我是否有正确的 c# 语法。

NotesRichTextItem rtitem = doc.GetFirstItem("name")
if ( rtitem.Type = 1) {
  foreach (NotesEmbeddedObject o in rtitem.EmbeddedObjects) {
    if ( o.Type = 1454 ) {
      o.ExtractFile( "c:\samples\" & o.Source )
    }
  }
}
于 2009-09-01T12:00:05.800 回答