MSDN Library

IItem::Delete

Windows Mobile 6.5
4/8/2010

The Delete method deletes a PIM item.


HRESULT Delete(void);

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

S_OK

The method completed successfully.

The following code example demonstrates how to use Delete.

Bb446152.note(en-us,MSDN.10).gifNote:
To make the following code example easier to read, security checking and error handling are not included. This code example should not be used in a release configuration unless it has been modified to include them.
HRESULT DeleteExample(IItem *pItem)
{
    HRESULT hr = E_FAIL;
    hr          = pItem->Delete();
    // The underlying item is deleted from the database.
    // All named properties associated with the item are deleted as well.
    return hr;
}

Headerpimstore.h
LibraryPimstore.lib
Windows MobilePocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later

Reference

IItem

Other Resources


Community Additions

Show:
© 2016 Microsoft