API Reference > OdRx Classes > OdRxAttributeCollection Class > OdRxAttributeCollection Methods > OdRxAttributeCollection::add Method
OdRxAttributeCollection::add Method
Syntax
C++
OdResult add(const OdRxAttribute* attribute);
Parameters 
Description 
const OdRxAttribute* attribute 
[in] Attribute to be added to the collection. 

eOk if operation was successful; eInvalidInput if the attribute parameter is invalid; eDuplicateKey if the collection already has an attribute of this type.

Add an attribute to the collection. If the collection already has an attribute of this class, it will not be replaced. 

 

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