Previous in Contents Next in Contents

IDBStorage::DeleteDataKey

The DeleteDataKey method deletes a row of data, based on the provided key value.

Syntax

HRESULT DeleteDataKey(
VARIANT vtReserved,// in
VARIANT vtKey// in
);

Parameters

vtReserved
This parameter is reserved for future use, and is ignored by the current implementation of DeleteDataKey.
vtKey
A VARIANT that contains the key value for the row to delete. This key corresponds to the column designated as the table key in the initial call to IDBStorage::InitStorage. Thus, if the call to InitStorage specifies column "some_column" as the table key, then DeleteDataKey searches "some_column" for the value stored in vtKey, and deletes the corresponding row of data.

Include

<commerce.h>

Return Value

Value Description
S_OK The row corresponding to the specified key was deleted.


© 1997-2000 Microsoft Corporation. All rights reserved.