IKeyStore::ClearKeys method (dbgmodel.h)

The ClearKeys method is analogous to the ClearKeys method on IModelObject. It will remove every key from the given metadata store. This method has no effect on any parent store.

Syntax

HRESULT ClearKeys();

Return value

This method returns HRESULT that indicates success or failure.

Remarks

Code Sample

ComPtr<IKeyStore> spMetadata; /* get a metadata store */

if (SUCCEEDED(spMetadata->ClearKeys()))
{
    // The metadata store is now empty.  A parent store may still have keys 
    // and GetKey[Value] may find those keys and values.
}

Requirements

Requirement Value
Header dbgmodel.h

See also

IKeyStore interface