Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method deletes an object with the specified name or ID.
HRESULT DeleteObject( BSTR in_bstrNameOrID);
Parameters
- in_bstrNameOrID
[in] ID of the object.
Return Values
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
OS Version: Windows 2000, Windows XP Home, Windows XP Pro, Windows Server 2003, and Windows Server 2003 Service Pack 1.
Header: CcDatastore.h.
Link Library: none.
See Also
Send Feedback on this topic to the authors