Freigeben über


CDataSource::GetProperty

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

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

Concepts

CDataSource Class

CDataSource Members