Class PstExporter
Exports messages, contacts, and appointments from a PST folder to individual files on disk (MSG, EML, VCF, ICS).
Inherited Members
Namespace: DRIT.Mail.Conversion
Assembly: DRIT.Mail.dll
Syntax
public static class PstExporter
Methods
View SourceExportAppointmentsToIcs(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 |
|
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when |
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 |
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 |
|
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when |
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 |
|
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when |