Share via


ICcObjectContainer::DeleteObject

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

This method deletes an object with the specified name or ID.

In Windows Embedded CE 6.0, CoreCon HLAPI has been deprecated.

Syntax

HRESULT DeleteObject(
  BSTR in_bstrNameOrID
);

Parameters

  • in_bstrNameOrID
    [in] ID of the object.

Return Value

The following table shows the return values for this method.

Value Description

S_OK

Indicates the object matching the name or ID was deleted from this container.

S_FALSE

Indicates the object was not found.

E_INVALIDARG

Indicates the name parameter must be non-NULL.

E_REF

Indicates there is an active reference to this object.

E_FAIL

Provides a return value for other failures.

E_OUTOFMEMORY

Indicates that the method could not allocate the bstr parameter in_bstrNameOrID.

E_DATASTORE_PROTECTED

Returns when unable to delete a protected entry.

Requirements

Header ccdatastore.h

See Also

Reference

Core Connectivity Interfaces