IPropPatchRequest::RemoveProperty method

[IPropPatchRequest::RemoveProperty is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Adds the name of the property to the list of properties to remove. The property name is prefixed with the namespace that contains it.

Syntax

HRESULT RemoveProperty(
  [in] DWORD  dwNamespaceID,
  [in] LPCSTR pszPropertyName
);

Parameters

dwNamespaceID [in]

Type: DWORD

Specifies a DWORD that contains the DAV namespace ID of the namespace that the property is part of. This parameter can be one of the following values.

DAVNAMESPACE_DAV (0)

DAVNAMESPACE_HOTMAIL (1)

DAVNAMESPACE_HTTPMAIL (2)

DAVNAMESPACE_MAIL (3)

DAVNAMESPACE_CONTACTS (4)

pszPropertyName [in]

Type: LPCSTR

Specifies an LPCSTR that contains the name of the property to remove.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_INVALIDARG
Indicates that dwNamespaceID is NULL or pszPropertyName is out of bounds.
E_OUTOFMEMORY
Indicates that an attempt to allocate memory failed.

Requirements

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