• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Open PST

Opens an Outlook Personal Folders (.pst) file for reading.

Code

using DRIT.Mail.Pst.PhysicalLayout;

using var pst = new PstFile("archive.pst");

Console.WriteLine($"PST format:        {pst.Format}");
Console.WriteLine($"Message store:     {pst.MessageStore}");
Console.WriteLine($"Root folder count: {pst.Folders.Count}");

Remarks

PstFile reads the PST file structure as defined in [MS-PST]. The file is opened in read-only mode by default. Dispose the PstFile instance when done to release the underlying file handle.

  • Improve this Doc
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX