title: Read Lotus Notes documents and items from NSF file with C#
body: <p>How can I get all Lotus Notes documents (e.g. mails and their content) from a <strong>Lotus Notes</strong> inbox from an <strong>NSF</strong> Files with C# and the usage of <strong>interop.domino.dll</strong>?</p>
  
  <p>I want to use the following snippet:</p>
  
  <pre><code>Domino.NotesSession m_session = null;
  
  ...
  
  this.m_session = new Domino.NotesSession();
  this.m_session.Initialize("");
  
  Domino.NotesDatabase db = null;
  this.m_session.GetDatabase("", "C:\test.nsf", false);
  
  Domino.NotesDocumentCollection col = db.AllDocuments;
  
  for (int i = 0; i &lt; col.Count; ++i)
  {
           Domino.NotesDocument doc = col.GetNthDocument(i);
  
           ...
  }
  </code></pre>
  
  <p>How can I access the items of each document? For example I want subject, who, date, time,...</p>
  
  <p>How can I iterate throug all items of a document?</p>
  
  <p>How can I extract attachments?</p>
  
  <p>Is the NotesSQL ODBC driver a good alternative to the COM API?</p>