다음을 통해 공유


CDataSource::GetInitializationString

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CDataSource::GetInitializationString.

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

Syntax

  
      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

CDataSource Class