共用方式為


CUtlProps::GetPropValue

從屬性集合取得屬性。

OUT_OF_LINE HRESULT GetPropValue( 
   const GUID* pguidPropSet, 
   DBPROPID dwPropId, 
   VARIANT* pvValue  
);

參數

  • pguidPropSet
    [in] PropSet 的 GUID。

  • dwPropId
    [in] 屬性索引。

  • pvValue
    [out] 包含新屬性值的 VARIANT 的指標。

傳回值

在發生失敗和 S_OK 的Failure ,如果成功。

需求

標頭: atldb.h

請參閱

參考

CUtlProps 類別