Partilhar via


CDataSource::GetInitializationString

Retrieves the initialization string of a data source that is currently open.

HRESULT GetInitializationString( 
   BSTR* pInitializationString, 
   bool bIncludePassword = false  
) throw( );

Parameters

  • pInitializationString
    [out] A pointer to the initialization string.

  • bIncludePassword
    [in] true if string includes a password; otherwise false.

Return Value

A standard HRESULT.

Remarks

The resulting initialization string can be used to later reopen this data source connection.

Requirements

Header: atldbcli.h

See Also

Reference

CDataSource Class

Other Resources

CDataSource Members