FolderInfoAddMapiMessageItem Method

Adds the IMapiMessageItem object into folder.

Namespace:  Aspose.Email.Storage.Pst
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public string AddMapiMessageItem(
	IMapiMessageItem item
)

Parameters

item
Type: Aspose.Email.MapiIMapiMessageItem
The item necessary to add.

Return Value

Type: String
The string that represents the EntryId of the added item.
Exceptions
ExceptionCondition
NotImplementedException throws, if a PST file version is ANSI.
ArgumentNullException throws, if an item to add is null.
InvalidOperationException throws, if a PST is open for reading only.
NotSupportedException Thrown when MessageClass doesn't belong to IPM.Note, IPM.StickyNote, IPM.Contact, IPM.Activity, IPM.Appointment, IPM.Schedule.meeting, IPM.Task.
InvalidOperationException Thrown when MessageClass doesn't correspond to the folder's ContainerClass.
See Also