FolderInfo.AddFile

FolderInfo.AddFile method

Adds a file into pst folder.

public string AddFile(string fileName, string messageClass)
ParameterTypeDescription
fileNameStringThe name of file necessary to add.
messageClassStringThe message class.

Return Value

The string that represents the EntryId of the added message.

Exceptions

exceptioncondition
NotImplementedExceptionthrows, if a PST file version is ANSI.
ArgumentNullExceptionthrows, if a name of file to add is null or empty.
InvalidOperationExceptionthrows, if a PST is open for reading only.

See Also