API Reference > OdDb Classes > OdDbObjectContextCollection Class > OdDbObjectContextCollection Methods > OdDbObjectContextCollection::addContext Method
OdDbObjectContextCollection::addContext Method
Syntax
C++
virtual OdResult addContext(const OdDbObjectContext* pContext) = 0;
Parameters 
Description 
const OdDbObjectContext* pContext 
[in] Pointer to the context for which a uniqueIdentifier is defined to copy and add to the context collection. 

Copies a context and adds the copy to the context collection. 

 

The new context is assigned a new uniqueIdentifier. Returns eOk if successful, or an appropriate error code if not.

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