IModelObject::ClearKeys method (dbgmodel.h)

The ClearKeys method removes all keys and their associated values and metadata from the instance of the object specified by this. This method has no effect on parent models attached to the particular object instance.

Syntax

HRESULT ClearKeys();

Return value

This method returns HRESULT that indicates success or failure.

Remarks

Code Sample

ComPtr<IModelObject> spObject; /* get an object */

if (SUCCEEDED(spObject->ClearKeys()))
{
    // The *instance* spObject has no keys.  Parent models may still have keys.
    // EnumerateKeyValues / EnumerateKeys / etc... may still return those parent keys.
}

Requirements

Requirement Value
Header dbgmodel.h

See also

IModelObject interface