API Reference > OdDb Classes > OdDbObjectContextInterface Class > OdDbObjectContextInterface Methods > OdDbObjectContextInterface::addContext Method
OdDbObjectContextInterface::addContext Method
Syntax
C++
virtual OdResult addContext(OdDbObject* pObject, const OdDbObjectContext& context) const = 0;
Parameters 
Description 
OdDbObject* pObject 
[in] Pointer to the object.  
const OdDbObjectContext& context 
[in] Name of the context to add. 

Returns eOk if successful, or an appropriate error code if not.

Adds a context to the specified object. 

 

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