FolderInfo.AddFile method

Adds a file into pst folder.

public string AddFile(string fileName, string messageClass)
Parameter Type Description
fileName String The name of file necessary to add.
messageClass String The message class.

Return Value

The string that represents the EntryId of the added message.


exception condition
NotImplementedException throws, if a PST file version is ANSI.
ArgumentNullException throws, if a name of file to add is null or empty.
InvalidOperationException throws, if a PST is open for reading only.

See Also