MboxToPst

MboxToPst(string, string)

Converts an Mbox storage to PST.

public static PersonalStorage MboxToPst(string mboxFileName, string pstFileName)
Parameter Type Description
mboxFileName String Mbox file name.
pstFileName String PST file name.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exception condition
ArgumentException If mboxFileName is null or empty.
ArgumentException If pstFileName is null or empty.

Remarks

In addition the same set of exceptions can be thrown as for FileStream creation using the open/read, create/write mode.

See Also


MboxToPst(string, string, MailHandler)

Converts an Mbox storage to PST.

public static PersonalStorage MboxToPst(string mboxFileName, string pstFileName, 
    MailHandler mailHandler)
Parameter Type Description
mboxFileName String Mbox file name.
pstFileName String PST file name.
mailHandler MailHandler The MailHandler delegate is called for each message that is read from Mbox.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exception condition
ArgumentException If mboxFileName is null or empty.
ArgumentException If pstFileName is null or empty.

Remarks

In addition the same set of exceptions can be thrown as for FileStream creation using the open/read, create/write mode.

See Also


MboxToPst(Stream, string)

Converts an Mbox storage to PST.

public static PersonalStorage MboxToPst(Stream mboxrdDataStream, string pstFileName)
Parameter Type Description
mboxrdDataStream Stream A Stream that represents data in Mbox format.
pstFileName String PST file name.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exception condition
ArgumentNullException If mboxrdDataStream is null.
ArgumentException If pstFileName is null or empty.

Remarks

In addition the same set of exceptions can be thrown as for FileStream creation using the open/read, create/write mode.

See Also


MboxToPst(Stream, string, MailHandler)

Converts an Mbox storage to PST.

public static PersonalStorage MboxToPst(Stream mboxrdDataStream, string pstFileName, 
    MailHandler mailHandler)
Parameter Type Description
mboxrdDataStream Stream A Stream that represents data in Mbox format.
pstFileName String PST file name.
mailHandler MailHandler The MailHandler delegate is called for each message that is read from Mbox.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exception condition
ArgumentNullException If mboxrdDataStream is null.
ArgumentException If pstFileName is null or empty.

Remarks

In addition the same set of exceptions can be thrown as for FileStream creation using the open/read, create/write mode.

See Also


MboxToPst(string, Stream)

Converts an Mbox storage to PST.

public static PersonalStorage MboxToPst(string mboxFileName, Stream pstDataStream)
Parameter Type Description
mboxFileName String Mbox file name.
pstDataStream Stream A Stream that represents data in Pst format.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exception condition
ArgumentException If mboxFileName is null or empty.
ArgumentNullException If pstDataStream is null.

Remarks

In addition the same set of exceptions can be thrown as for FileStream creation using the open/read, create/write mode.

See Also


MboxToPst(string, Stream, MailHandler)

Converts an Mbox storage to PST.

public static PersonalStorage MboxToPst(string mboxFileName, Stream pstDataStream, 
    MailHandler mailHandler)
Parameter Type Description
mboxFileName String Mbox file name.
pstDataStream Stream A Stream that represents data in Pst format.
mailHandler MailHandler The MailHandler delegate is called for each message that is read from Mbox.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exception condition
ArgumentException If mboxFileName is null or empty.
ArgumentNullException If pstDataStream is null.

Remarks

In addition the same set of exceptions can be thrown as for FileStream creation using the open/read, create/write mode.

See Also


MboxToPst(Stream, Stream)

Converts an Mbox storage to PST.

public static PersonalStorage MboxToPst(Stream mboxrdDataStream, Stream pstDataStream)
Parameter Type Description
mboxrdDataStream Stream A Stream that represents data in Mbox format.
pstDataStream Stream A Stream that represents data in Pst format.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exception condition
ArgumentNullException If mboxrdDataStream is null.
ArgumentNullException If pstDataStream is null.

See Also


MboxToPst(Stream, Stream, MailHandler)

Converts an Mbox storage to PST.

public static PersonalStorage MboxToPst(Stream mboxrdDataStream, Stream pstDataStream, 
    MailHandler mailHandler)
Parameter Type Description
mboxrdDataStream Stream A Stream that represents data in Mbox format.
pstDataStream Stream A Stream that represents data in Pst format.
mailHandler MailHandler The MailHandler delegate is called for each message that is read from Mbox.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exception condition
ArgumentNullException If mboxrdDataStream is null.
ArgumentNullException If pstDataStream is null.

See Also


MboxToPst(MboxStorageReader, PersonalStorage, string, MailHandler)

Converts an Mbox storage to PST.

public static void MboxToPst(MboxStorageReader mboxStorageReader, PersonalStorage pst, 
    string pstFolderName, MailHandler mailHandler)
Parameter Type Description
mboxStorageReader MboxStorageReader An MboxStorageReader that represents an mbox-based mail storage reader.
pst PersonalStorage A PersonalStorage that represents a pst storage.
pstFolderName String The folder name, at the root of the pst, where Mbox messages will be added. If this folder doesn’t exist, it will be created. If the folder exists and isn’t empty, new messages will be added to the existing ones.
mailHandler MailHandler The MailHandler delegate is called for each message that is read from Mbox.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exception condition
ArgumentNullException If mboxStorageReader is null.
ArgumentNullException If pst is null.

See Also