This member function adds a property to the record.
BOOL AddProp( CCeDBProp* pProp );
Header file: | Wcedb.h |
Platforms: | |
Versions: | 2.0 and later |
TRUE if the operation was successful; FALSE if there was not enough memory available to add the property.
When you add a property to a record by using the AddProp function, the CCeDBRecord object keeps a pointer to the property you pass in. It does not make a copy of the property itself. When the record is destroyed, it does not release the memory occupied by that property. By contrast, when you read a record from the object store by calling ReadCurrentRecord, the properties in that record are owned by the record, and are consequently freed when the record is destroyed.
CCeDBRecord Overview, CCeDBRecord Member Functions, Windows CE Database Support, CCeDBProp, CCeDBRecord::AddProps