API Reference > OdDb Classes > OdDbObjectContextCollection Class > OdDbObjectContextCollection Methods > OdDbObjectContextCollection::removeContext Method
OdDbObjectContextCollection::removeContext Method
Syntax
C++
virtual OdResult removeContext(const OdString& contextName) = 0;
Parameters 
Description 
const OdString& contextName 
[in] Name of the context to delete from the context collection. 

Removes a context from the context collection. 

 

To remove the current context from a collection, first make a different context current, then delete the desired context. Returns eOk if successful, or an appropriate error code if not.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.