IContactProperties::DeleteProperty method (icontact.h)

Deletes the value at a specified property. Property modification and version data can still be enumerated with IContactPropertyCollection.

Syntax

HRESULT DeleteProperty(
  [in] LPCWSTR pszPropertyName,
  [in] DWORD   dwFlags
);

Parameters

[in] pszPropertyName

Type: LPCWSTR

Specifies the property to delete the value for.

[in] dwFlags

Type: DWORD

Must be CGD_DEFAULT.

Return value

Type: HRESULT

Returns one of the following values:

Return code Description
S_OK
Property deleted successfully.
ERROR_PATH_NOT_FOUND
Property name doesn't exist for delete.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header icontact.h (include Contact.h)
DLL Wab32.dll (Version 6.0 or later)