Adds an attribute to the collection.
eOk if an attribute is added to the collection successfully, eInvalidInput if the attribute parameter is invalid.