다음을 통해 공유


CDataSource::GetProperty

 

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::GetProperty.

Returns the value of a specified property for the connected data source object.

Syntax

  
      HRESULT GetProperty(   
   const GUID& guid,   
   DBPROPID propid,   
   VARIANT* pVariant    
) const throw( );  

Parameters

guid
[in] A GUID identifying the property set for which to return the property.

propid
[in] Property ID for the property to return.

pVariant
[out] A pointer to the variant where GetProperty returns the value of the property.

Return Value

A standard HRESULT.

Remarks

To get multiple properties, use GetProperties.

Requirements

Header: atldbcli.h

See Also

CDataSource Class