FolderInfoAddFile Method

Adds a file into pst folder.

Namespace:  Aspose.Email.Storage.Pst
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public string AddFile(
	string fileName,
	string messageClass
)

Parameters

fileName
Type: SystemString
The name of file necessary to add.
messageClass
Type: SystemString
The message class.

Return Value

Type: String
The string that represents the EntryId of the added message.
Exceptions
ExceptionCondition
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