IDataModelManager::UnregisterNamedModel method (dbgmodel.h)

The UnregisterNamedModel method undoes a prior call to RegisterNamedModel. It removes the association between a data model and a name under which it can be looked up.

Syntax

HRESULT UnregisterNamedModel(
  PCWSTR modelName
);

Parameters

modelName

The name which will be unregistered. Any data model registered under this name will no longer be registered.

Return value

This method returns HRESULT that indicates success or failure.

Remarks

Sample Code

ComPtr<IDataModelManager> spManager;    /* get the data model manager */

if (SUCCEEDED(spManager->UnregisterNamedModel(
    L"Debugger.Models.Process.PrivateProcessExtension")))
{
    // Whatever data model was registered under
    // Debugger.Models.Process.PrivateProcessExtension is no longer registered.
}

Requirements

Requirement Value
Header dbgmodel.h

See also

IDataModelManager interface