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

Class PstImporter

Imports messages, contacts, and appointments from files on disk (MSG, EML, VCF, ICS) into a PST folder.

Inheritance
object
PstImporter
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 PstImporter

Methods

View Source

ImportEmlFiles(CompositeFolder, string, bool)

Imports all EML files from a directory into the specified PST folder.

Declaration
public static int ImportEmlFiles(CompositeFolder targetFolder, string inputDirectory, bool recursive = true)
Parameters
Type Name Description
CompositeFolder targetFolder

The PST folder to import into.

string inputDirectory

The directory to scan for EML files.

bool recursive

true to scan sub-directories; otherwise false.

Returns
Type Description
int

The number of messages successfully imported.

Exceptions
Type Condition
ArgumentNullException

Thrown when targetFolder or inputDirectory is null.

View Source

ImportIcsFiles(CompositeFolder, string)

Imports all ICS (iCalendar) files from a directory into the specified PST folder as appointments.

Declaration
public static int ImportIcsFiles(CompositeFolder targetFolder, string inputDirectory)
Parameters
Type Name Description
CompositeFolder targetFolder

The PST folder to import into.

string inputDirectory

The directory to scan for ICS files.

Returns
Type Description
int

The number of appointments successfully imported.

Exceptions
Type Condition
ArgumentNullException

Thrown when targetFolder or inputDirectory is null.

View Source

ImportMsgFiles(CompositeFolder, string, bool)

Imports all MSG files from a directory into the specified PST folder.

Declaration
public static int ImportMsgFiles(CompositeFolder targetFolder, string inputDirectory, bool recursive = true)
Parameters
Type Name Description
CompositeFolder targetFolder

The PST folder to import into.

string inputDirectory

The directory to scan for MSG files.

bool recursive

true to scan sub-directories; otherwise false.

Returns
Type Description
int

The number of messages successfully imported.

Exceptions
Type Condition
ArgumentNullException

Thrown when targetFolder or inputDirectory is null.

View Source

ImportVcfFiles(CompositeFolder, string)

Imports all VCF (vCard) files from a directory into the specified PST folder as contacts.

Declaration
public static int ImportVcfFiles(CompositeFolder targetFolder, string inputDirectory)
Parameters
Type Name Description
CompositeFolder targetFolder

The PST folder to import into.

string inputDirectory

The directory to scan for VCF files.

Returns
Type Description
int

The number of contacts successfully imported.

Exceptions
Type Condition
ArgumentNullException

Thrown when targetFolder or inputDirectory 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