IMimePropertySet::DeleteExcept method

Deletes all the properties in the property set, except for a specified set.

Syntax

HRESULT DeleteExcept(
  [in] ULONG  cNames,
  [in] LPCSTR *prgszName
);

Parameters

cNames [in]

Type: ULONG

Specifies a ULONG that contains the number of elements in the prgszName array. A client can pass 0 for this parameter and NULL for prgszName to delete all properties.

prgszName [in]

Type: LPCSTR*

Specifies a pointer to an array of property names or property IDs to keep.

Note

This is the exception list.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_FAIL
Indicates that an unknown error has occurred.
E_INVALIDARG
Indicates that cNames is equal to zero and prgszName is not NULL or cNames is greater than zero and prgszName is NULL.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Mimeole.h
IDL
Mimeole.idl
DLL
Inetcomm.dll (version 6.0 or later)