共用方式為


CUtlProps::SetPropValue

設定屬性集合的屬性。

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

參數

  • pguidPropSet
    [in] PropSet 的 GUID。

  • dwPropId
    [in] 屬性索引。

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

傳回值

在失敗時是Failure,如果成功則是S_OK。

需求

標頭: atldb.h

請參閱

參考

CUtlProps 類別