CCeDBRecord::AddProp

This member function adds a property to the record.

Syntax

BOOL AddProp( CCeDBProp* pProp );

At a Glance

Header file: Wcedb.h
Platforms:
Versions: 2.0 and later

Parameters

pProp
A pointer to the CCeDBProp object to be added.

Return Values

TRUE if the operation was successful; FALSE if there was not enough memory available to add the property.

Remarks

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.

See Also

CCeDBRecord Overview, CCeDBRecord Member Functions, Windows CE Database Support, CCeDBProp, CCeDBRecord::AddProps