IItem::Delete
9/8/2008
The Delete método exclui um PIM item.
Syntax
HRESULT Delete(void);
Return Value
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED GPSGetPosition, e E_FAIL, as well as o seguinte.
- S_OK
The method completed successfully.
Exemplo de código
O seguinte exemplo de código demonstra como usar Delete.
Observação
Para tornar o exemplo de código mais fácil para ler, verificação de segurança e manipulação de erro não estão incluídos.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;
}
Requirements
Header | pimstore.h |
Library | Pimstore.lib |
Windows Mobile | Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later |