IRepositoryODBC2::SetOption

Meta Data Services Programming

Meta Data Services Programming

IRepositoryODBC2::SetOption

This method sets the option for loading the collection. The RODBC_ASYNCH flag can be set only if the underlying database system supports asynchronous operations.

Syntax

HRESULT SetOption(
    long iOption,
    VARIANT sValue);

Parameters

iOption

[in]
Specifies the option to set. You can set either RODBC_ASYNCH or RODBC_RESET_OPTIONS.

RODBC_ASYNCH takes an sValue.

RODBC_RESET_OPTIONS does not take an sValue.

sValue

[in]
TRUE sets the asynchronous mode of load.

FALSE clears the asynchronous mode of load.

Return Value

S_OK

The method completed successfully.

Error Values

This method failed to complete successfully.

See Also

IRepositoryODBC Interface

IRepositoryODBC2 Interface

IRepositoryODBC2::GetOption