FolderInfo.DeleteChildItems

FolderInfo.DeleteChildItems method

Deletes the child messages.

public void DeleteChildItems(IEnumerable<string> entryIdCollection)
ParameterTypeDescription
entryIdCollectionIEnumerable`1The entry id collection.

Exceptions

exceptioncondition
InvalidOperationExceptionThe PST is open for reading only. or The item, to be deleted, doesn’t belong to this folder. or The search folder cannot be deleted. or The \Deleted Items\ folder cannot be deleted. or The entryId is incorrect.
ArgumentNullExceptionentryId;The entryId cannot be null.
NotImplementedExceptionThrown when attempting to edit the ANSI file version.

See Also