IModelObject::RemoveParentModel method (dbgmodel.h)
The RemoveParentModel will remove a specified parent model from the parent search chain of the given object.
Syntax
HRESULT RemoveParentModel(
IModelObject *model
);
Parameters
model
The parent model to remove from this object.
Return value
This method returns HRESULT that indicates success or failure.
Remarks
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
}
Requirements
Requirement | Value |
---|---|
Header | dbgmodel.h |