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

Returns true if the object uses the named context, or returns false if it does not.

Returns whether a context is used by a specified object. 

 

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