CCeDBEnum::CCeDBEnum

Use this constructor to construct a CCeDBEnum object and begin an enumeration of the databases in the object store.

Syntax

CCeDBEnum ( DWORD dwIdent = 0 );

At a Glance

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

Parameters

dwIdent
The application-defined identifier of the databases to enumerate. The default value of this parameter is zero. When zero is specified, the enumerator enumerates all databases in the object store. If a value other than zero is passed in, the enumerator enumerates only those databases that have this type identifier value.

Remarks

Constructing the enumerator begins the enumeration. To get the CEOID of the next database in the object store with the specified identifier, call the member function Next. The enumeration ends when either Next returns NULL or the CCeDBEnum object is destroyed.

You assign a database its application-defined identifier either when you call CCeDBDatabase::Create or by calling CCeDBDatabase::SetIdent.

See Also

CCeDBEnum Overview, CCeDBEnum Member Functions, Windows CE Database Support, CCeDBEnum::Next, CCeDBDatabase::Create, , CCeDBDatabase::SetIdent