IModelObject::RemoveParentModel method (dbgmodel.h)
The RemoveParentModel will remove a specified parent model from the parent search chain of the given object.
HRESULT RemoveParentModel(
IModelObject *model
);
model
The parent model to remove from this object.
This method returns HRESULT that indicates success or failure.
Code Sample
ComPtr<IModelObject> spObject; /* get an object */
ComPtr<IModelObject> spDataModelObject; /* get an attached data model (from earlier add or from GetParentModel) */
if (SUCCEEDED(spObject->RemoveParentModel(spDataModelObject.Get())))
{
// spObject no longer has the properties or concepts exposed by spDataModelObject
}
Requirement | Value |
---|---|
Header | dbgmodel.h |