CCeDBDatabase::SetName

This method sets the name of the database.

At a Glance

Header file: Wcedb.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 2.0 and later

Syntax

BOOL SetName( LPCWSTR wszName );

Parameters

wszName
Pointer to a null-terminated string that contains the name to assign to the database.

Return Values

TRUE indicates that the name was successfully assigned to the database. FALSE indicates that there was an error. To get extended error information, call GetLastError.

Remarks

The name must be unique within the object store.

See Also

CCeDBDatabase::GetName, GetLastError