다음을 통해 공유


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( );

매개 변수

  • 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.

반환 값

A standard HRESULT.

설명

To get multiple properties, use GetProperties.

요구 사항

헤더: atldbcli.h

참고 항목

참조

CDataSource 클래스