ExchangeClient.Restore

Restore(string, RestoreOptions)

Restores exchange folders from the specified personal storage file.

public void Restore(string fileName, RestoreOptions options)
ParameterTypeDescription
fileNameStringA path to personal storage file.
optionsRestoreOptionsRestore options.

Exceptions

exceptioncondition
AsposeArgumentExceptionfileName is not specified.

See Also


Restore(Stream, RestoreOptions)

Restores exchange folders from the given personal storage.

public void Restore(Stream stream, RestoreOptions options)
ParameterTypeDescription
streamStreamA stream containing personal storage.
optionsRestoreOptionsRestore options.

Exceptions

exceptioncondition
NotSupportedExceptionThe stream does not support reading.
AsposeArgumentNullExceptionstream is null.

See Also


Restore(PersonalStorage, RestoreOptions)

Restores exchange folders from the given personal storage.

public void Restore(PersonalStorage pst, RestoreOptions options)
ParameterTypeDescription
pstPersonalStorageA personal storage containing the backuped imap folders.
optionsRestoreOptionsRestore options.

Exceptions

exceptioncondition
AsposeArgumentNullExceptionpst is null.

See Also


Restore(string, ExchangeFolderInfoCollection, RestoreOptions)

Restores the specified exchange folders from the specified personal storage file.

public void Restore(string fileName, ExchangeFolderInfoCollection folders, RestoreOptions options)
ParameterTypeDescription
fileNameStringA path to personal storage file.
foldersExchangeFolderInfoCollectionA folders to be restored.
optionsRestoreOptionsRestore options.

Exceptions

exceptioncondition
AsposeArgumentExceptionfileName is not specified.
AsposeArgumentNullExceptionfolders is null.

See Also


Restore(Stream, ExchangeFolderInfoCollection, RestoreOptions)

Restores the specified exchange folders from the given personal storage.

public void Restore(Stream stream, ExchangeFolderInfoCollection folders, RestoreOptions options)
ParameterTypeDescription
streamStreamA stream containing personal storage.
foldersExchangeFolderInfoCollectionA folders to be restored.
optionsRestoreOptionsRestore options.

Exceptions

exceptioncondition
NotSupportedExceptionThe stream does not support reading.
AsposeArgumentNullExceptionstream or folders is null.

See Also


Restore(PersonalStorage, ExchangeFolderInfoCollection, RestoreOptions)

Restores the specified exchange folders from the given personal storage.

public void Restore(PersonalStorage pst, ExchangeFolderInfoCollection folders, 
    RestoreOptions options)
ParameterTypeDescription
pstPersonalStorageA personal storage containing the backuped exchange folders.
foldersExchangeFolderInfoCollectionA folders to be restored.
optionsRestoreOptionsRestore options.

Exceptions

exceptioncondition
AsposeArgumentNullExceptionpst or folders is null.

See Also