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

Class PstExporter

Exports messages, contacts, and appointments from a PST folder to individual files on disk (MSG, EML, VCF, ICS).

Inheritance
object
PstExporter
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Mail.Conversion
Assembly: DRIT.Mail.dll
Syntax
public static class PstExporter

Methods

View Source

ExportAppointmentsToIcs(CompositeFolder, string, bool)

Exports all appointments in a folder to ICS (iCalendar) files.

Declaration
public static void ExportAppointmentsToIcs(CompositeFolder folder, string outputDirectory, bool singleFile = false)
Parameters
Type Name Description
CompositeFolder folder

The PST folder to export from.

string outputDirectory

The directory to write the ICS files to.

bool singleFile

true to write all appointments into a single ICS file; false to write one ICS file per appointment.

Exceptions
Type Condition
ArgumentNullException

Thrown when folder or outputDirectory is null.

View Source

ExportContactsToVcf(CompositeFolder, string)

Exports all contacts in a folder to individual VCF (vCard) files.

Declaration
public static void ExportContactsToVcf(CompositeFolder folder, string outputDirectory)
Parameters
Type Name Description
CompositeFolder folder

The PST folder to export from.

string outputDirectory

The directory to write the VCF files to.

Exceptions
Type Condition
ArgumentNullException

Thrown when folder or outputDirectory is null.

View Source

ExportFolderToEml(CompositeFolder, string, bool)

Exports all messages in a folder to individual EML files.

Declaration
public static void ExportFolderToEml(CompositeFolder folder, string outputDirectory, bool recursive = true)
Parameters
Type Name Description
CompositeFolder folder

The PST folder to export from.

string outputDirectory

The directory to write the EML files to.

bool recursive

true to export sub-folders recursively; otherwise false.

Exceptions
Type Condition
ArgumentNullException

Thrown when folder or outputDirectory is null.

View Source

ExportFolderToMsg(CompositeFolder, string, bool)

Exports all messages in a folder to individual MSG files.

Declaration
public static void ExportFolderToMsg(CompositeFolder folder, string outputDirectory, bool recursive = true)
Parameters
Type Name Description
CompositeFolder folder

The PST folder to export from.

string outputDirectory

The directory to write the MSG files to.

bool recursive

true to export sub-folders recursively; otherwise false.

Exceptions
Type Condition
ArgumentNullException

Thrown when folder or outputDirectory is null.

  • View Source
Back to top

DR-IT Software documentation

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

Generated by DocFX