MailStorageConverter.MboxToPst

MboxToPst(string, string)

Converts an Mbox storage to PST.

public static PersonalStorage MboxToPst(string mboxFileName, string pstFileName)
ParameterTypeDescription
mboxFileNameStringMbox file name.
pstFileNameStringPST file name.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exceptioncondition
ArgumentExceptionIf mboxFileName is null or empty.
ArgumentExceptionIf 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)
ParameterTypeDescription
mboxFileNameStringMbox file name.
pstFileNameStringPST file name.
mailHandlerMailHandlerThe MailHandler delegate is called for each message that is read from Mbox.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exceptioncondition
ArgumentExceptionIf mboxFileName is null or empty.
ArgumentExceptionIf 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)
ParameterTypeDescription
mboxrdDataStreamStreamA Stream that represents data in Mbox format.
pstFileNameStringPST file name.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exceptioncondition
ArgumentNullExceptionIf mboxrdDataStream is null.
ArgumentExceptionIf 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)
ParameterTypeDescription
mboxrdDataStreamStreamA Stream that represents data in Mbox format.
pstFileNameStringPST file name.
mailHandlerMailHandlerThe MailHandler delegate is called for each message that is read from Mbox.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exceptioncondition
ArgumentNullExceptionIf mboxrdDataStream is null.
ArgumentExceptionIf 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)
ParameterTypeDescription
mboxFileNameStringMbox file name.
pstDataStreamStreamA Stream that represents data in Pst format.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exceptioncondition
ArgumentExceptionIf mboxFileName is null or empty.
ArgumentNullExceptionIf 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)
ParameterTypeDescription
mboxFileNameStringMbox file name.
pstDataStreamStreamA Stream that represents data in Pst format.
mailHandlerMailHandlerThe MailHandler delegate is called for each message that is read from Mbox.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exceptioncondition
ArgumentExceptionIf mboxFileName is null or empty.
ArgumentNullExceptionIf 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)
ParameterTypeDescription
mboxrdDataStreamStreamA Stream that represents data in Mbox format.
pstDataStreamStreamA Stream that represents data in Pst format.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exceptioncondition
ArgumentNullExceptionIf mboxrdDataStream is null.
ArgumentNullExceptionIf 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)
ParameterTypeDescription
mboxrdDataStreamStreamA Stream that represents data in Mbox format.
pstDataStreamStreamA Stream that represents data in Pst format.
mailHandlerMailHandlerThe MailHandler delegate is called for each message that is read from Mbox.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exceptioncondition
ArgumentNullExceptionIf mboxrdDataStream is null.
ArgumentNullExceptionIf 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)
ParameterTypeDescription
mboxStorageReaderMboxStorageReaderAn MboxStorageReader that represents an mbox-based mail storage reader.
pstPersonalStorageA PersonalStorage that represents a pst storage.
pstFolderNameStringThe 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.
mailHandlerMailHandlerThe MailHandler delegate is called for each message that is read from Mbox.

Return Value

A PersonalStorage object that represents the converted storage.

Exceptions

exceptioncondition
ArgumentNullExceptionIf mboxStorageReader is null.
ArgumentNullExceptionIf pst is null.

See Also


MboxToPst(string, string, MboxToPstConversionOptions)

Converts an Mbox storage to PST.

public static PersonalStorage MboxToPst(string mboxFileName, string pstFileName, 
    MboxToPstConversionOptions options)
ParameterTypeDescription
mboxFileNameStringMbox file name.
pstFileNameStringPST file name.
optionsMboxToPstConversionOptionsAn MboxToPstConversionOptions additional options when converting from Mbox to PST

See Also


MboxToPst(Stream, Stream, MboxToPstConversionOptions)

Converts an Mbox storage to PST.

public static PersonalStorage MboxToPst(Stream mboxrdDataStream, Stream pstDataStream, 
    MboxToPstConversionOptions options)
ParameterTypeDescription
mboxrdDataStreamStreamA Stream that represents data in Mbox format.
pstDataStreamStreamA Stream that represents data in Pst format.
optionsMboxToPstConversionOptionsAn MboxToPstConversionOptions additional options when converting from Mbox to PST

See Also


MboxToPst(MboxStorageReader, PersonalStorage, string, MboxToPstConversionOptions)

Converts an Mbox storage to PST.

public static void MboxToPst(MboxStorageReader mboxStorageReader, PersonalStorage pst, 
    string pstFolderName, MboxToPstConversionOptions options)
ParameterTypeDescription
mboxStorageReaderMboxStorageReaderAn MboxStorageReader that represents an mbox-based mail storage reader.
pstPersonalStorageA PersonalStorage that represents a pst storage.
pstFolderNameStringThe 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.
optionsMboxToPstConversionOptionsAn MboxToPstConversionOptions additional options when converting from Mbox to PST

See Also