CompuMaster.Data.Outlook 2026.11.12.100

dotnet add package CompuMaster.Data.Outlook --version 2026.11.12.100
                    
NuGet\Install-Package CompuMaster.Data.Outlook -Version 2026.11.12.100
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CompuMaster.Data.Outlook" Version="2026.11.12.100" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CompuMaster.Data.Outlook" Version="2026.11.12.100" />
                    
Directory.Packages.props
<PackageReference Include="CompuMaster.Data.Outlook" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CompuMaster.Data.Outlook --version 2026.11.12.100
                    
#r "nuget: CompuMaster.Data.Outlook, 2026.11.12.100"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CompuMaster.Data.Outlook@2026.11.12.100
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CompuMaster.Data.Outlook&version=2026.11.12.100
                    
Install as a Cake Addin
#tool nuget:?package=CompuMaster.Data.Outlook&version=2026.11.12.100
                    
Install as a Cake Tool

CompuMaster.Data.Outlook

Simplified access to already connected Outlook Mailboxes or to additional Outlook PST files with performant data transfer (reduced roundtrips to server) based on NetOfficeFw.OutlookApi (requires installed MS Outlook)

Github Release NuGet CompuMaster.Data.Outlook

Sample application

  • Sample application for quick starting your own development
    Screenshot of sample application
  • Sample extraction of MS Outlook calendar entries into Microsoft Excel XLSX file (works for CSV files, too) Screenshot of sample application

Sample code

It's easy to browse and access all folders of Outlook's PST files, it takes just a few lines of code (also see sample console/debug app)

Sample code (C#)

class Program
{
    static void Main(string[] args)
    {
        CompuMaster.Data.Outlook.OutlookApp OutlookApp = new CompuMaster.Data.Outlook.OutlookApp(12);
        try
        {
            CompuMaster.Data.Outlook.FolderPathRepresentation PstRootFolderPath;
            PstRootFolderPath = OutlookApp.LookupRootFolder(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SampleData", "Mailbox.pst"));
            PstRootFolderPath.Directory.ForDirectoryAndEachSubDirectory((CompuMaster.Data.Outlook.Directory dir) =>
            {
                Console.Write(dir.Path);
                Console.Write(" (SubFolders:" + dir.SubFolderCount.ToString() + " / UnReadItems:" + dir.ItemUnreadCount().ToString() + " / TotalItems:" + dir.ItemCount().ToString() + ")");
                Console.WriteLine();
                ShowItems_FormatTable(dir);
            });
        }
        finally
        {
            OutlookApp.Application.Quit();
        }
    }

    // Following method requires CompuMaster.Data library (see NuGet gallery) to render DataTable nicely for command line output
    private static void ShowItems_FormatTable(CompuMaster.Data.Outlook.Directory dir)
    {
        System.Data.DataTable FolderItems = dir.ItemsAllAsDataTable();
        CompuMaster.Data.DataTables.RemoveColumns(FolderItems, new string[] { "Body", "HTMLBody", "RTFBody" }); // Do not show multi-line fields following steps
        CompuMaster.Data.DataTables.RemoveColumns(FolderItems, new string[] { "ParentFolderID", "EntryID" }); // Do not show ID fields in following steps
        Console.WriteLine(CompuMaster.Data.DataTables.ConvertToPlainTextTableFixedColumnWidths(FolderItems));
    }
}

Sample code (VB.NET)

Sub Main()
    Dim OutlookApp As New CompuMaster.Data.Outlook.OutlookApp(12)
    Try
        Dim PstRootFolderPath As CompuMaster.Data.Outlook.FolderPathRepresentation 
        PstRootFolderPath = OutlookApp.LookupRootFolder(System.IO.Path.Combine(My.Application.Info.DirectoryPath, "SampleData", "Mailbox.pst"))
        PstRootFolderPath.Directory.ForDirectoryAndEachSubDirectory(
            Sub(dir As CompuMaster.Data.Outlook.Directory)
                Console.Write(dir.Path)
                Console.Write(" (SubFolders:" & dir.SubFolderCount & " / UnReadItems:" & dir.ItemUnreadCount & " / TotalItems:" & dir.ItemCount & ")")
                Console.WriteLine()
                ShowItems_FormatTable(dir)
            End Sub)
    Finally
        OutlookApp.Application.Quit()
    End Try
End Sub

'Following method requires CompuMaster.Data library (see NuGet gallery) to render DataTable nicely for command line output
Private Sub ShowItems_FormatTable(dir As CompuMaster.Data.Outlook.Directory)
    Dim FolderItems As System.Data.DataTable = dir.ItemsAllAsDataTable
    CompuMaster.Data.DataTables.RemoveColumns(FolderItems, New String() {"Body", "HTMLBody", "RTFBody"}) 'Do not show multi-line fields following steps
    CompuMaster.Data.DataTables.RemoveColumns(FolderItems, New String() {"ParentFolderID", "EntryID"}) 'Do not show ID fields in following steps
    Console.WriteLine(CompuMaster.Data.DataTables.ConvertToPlainTextTableFixedColumnWidths(FolderItems))
End Sub

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2026.11.12.100 47 11/13/2026
2021.1.14.100 941 1/11/2021
2021.1.11.100 718 1/10/2021
2021.1.10.100 725 1/10/2021
2017.4.18.100 1,569 4/18/2017
2017.4.13.100 1,387 4/13/2017
2017.4.7.100 1,391 4/7/2017