Share via


IContactProperties::DeleteProperty Method

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

Syntax

HRESULT DeleteProperty(      
    LPCWSTR pszPropertyName,
    DWORD dwFlags
);

Parameters

  • pszPropertyName
    [in] Specifies the property to delete the value for.
  • dwFlags
    [in] Must be CGD_DEFAULT.

Return Value

Returns one of the following values:

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