Condividi tramite


IRowPosition::Initialize

Initializes the row position object by setting the source rowset.

Syntax

HRESULT Initialize (
   IUnknown *   pRowset);

Parameters

  • pRowset
    [in] Pointer to an interface on the source rowset.

Return Code

  • S_OK
    The method succeeded.

  • E_FAIL
    A provider-specific error occurred.

  • E_INVALIDARG
    pRowset was a null pointer.

  • E_NOINTERFACE
    pRowset does not support the IRowset interface.

  • DB_E_ALREADYINITIALIZED
    The row position object has already been initialized.

  • E_UNEXPECTED
    ITransaction::Commit or ITransaction::Abort was called, and the object is in a zombie state.