Udostępnij za pośrednictwem


CEnumerator::Open

Binds the moniker for the enumerator, if one is specified, then retrieves the rowset for the enumerator by calling ISourcesRowset::GetSourcesRowset.

HRESULT Open( 
   LPMONIKER pMoniker  
) throw( ); 
HRESULT Open( 
   const CLSID* pClsid = & CLSID_OLEDB_ENUMERATOR  
) throw( ); 
HRESULT Open( 
   const CEnumerator& enumerator  
) throw( );

Parameters

  • pMoniker
    [in] A pointer to a moniker for an enumerator.

  • pClsid
    [in] A pointer to the CLSID of an enumerator.

  • enumerator
    [in] A reference to an enumerator.

Return Value

A standard HRESULT.

Requirements

Header: atldbcli.h

See Also

Reference

CEnumerator Class

Other Resources

CEnumerator Members