FolderInfo.DeleteChildItem

FolderInfo.DeleteChildItem method

Deletes the item (folder or message) by it’s entryId.

public void DeleteChildItem(byte[] entryId)
ParameterTypeDescription
entryIdByte[]The entry id.

Exceptions

exceptioncondition
ArgumentNullExceptionthrows, if entryId is null.
InvalidOperationExceptionthrows, if the item doesn’t belong to the folder or the item can’t be deleted or entryID has the incorrect value.
InvalidOperationExceptionthrows, if a PST is open for reading only.
NotImplementedExceptionThrown when attempting to edit the ANSI file version.

Remarks

The item must be contained in a folder.

See Also