次の方法で共有


IABContainer::DeleteEntries

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Removes one or more entries, typically messaging users, distribution lists, or other containers.

HRESULT DeleteEntries(
  LPENTRYLIST lpEntries,
  ULONG ulFlags
);

Parameters

  • lpEntries
    [in] A pointer to an array of ENTRYLIST structures that contain entry identifiers that represent the entries being deleted.

  • ulFlags
    [in] Reserved; must be zero.

Return Value

  • S_OK
    The specified entries have been successfully deleted.

  • MAPI_W_PARTIAL_COMPLETION
    The call succeeded, but one or more of the entries could not be deleted. When this value is returned, the call should be handled as successful. To test for this value, use the HR_FAILED macro. For more information, see Using Macros for Error Handling.

MFCMAPI Reference

For MFCMAPI sample code, see the following table.

File

Function

Comment

Abdlg.cpp

CabDlg::OnDeleteSelectedItem

MFCMAPI uses the DeleteEntries method to delete a specific entry from an address book container.

See Also

Reference

IABContainer : IMAPIContainer

Concepts

MFCMAPI as a Code Sample