ICommandPersist:: GetCurrentCommand

Returns the DBID of the current command.

HRESULT   GetCurrentCommand(
   DBID *   pCommandID); 

Parameters

pCommandID

[out]
The DBID of the current command.

Return Code

S_OK

The DBID of the command was successfully returned.

E_OUTOFMEMORY

There is not enough memory to successfully return the command's DBID.

DB_E_COMMANDNOTPERSISTED

The current command does not yet have a DBID.

E_FAIL

A provider-specific error occurred.