CDBPropIDSet 類別
繼承自 結構,DBPROPIDSET
並新增可初始化索引鍵欄位以及 AddPropertyID 存取方法的建構函式。
語法
class CDBPropIDSet : public tagDBPROPIDSET
需求
標頭檔:atldbcli.h
成員
方法
名稱 | 描述 |
---|---|
AddPropertyID | 將屬性新增至屬性標識碼集。 |
CDBPropIDSet | 建構函式。 |
SetGUID | 設定屬性識別碼集的 GUID。 |
操作員
名稱 | 描述 |
---|---|
operator = | 將一個屬性識別碼的內容指派給另一個屬性識別碼。 |
備註
OLE DB 取用者會使用 DBPROPIDSET
結構來傳遞取用者想要取得屬性資訊的屬性標識碼陣列。 單 一 DBPROPIDSET 結構中所識別的屬性屬於一個屬性集。
CDBPropIDSet::AddPropertyID
將屬性 ID 加入至屬性 ID 集。
語法
bool AddPropertyID(DBPROPID propid) throw();
參數
propid
[in] 要加入至屬性 ID 集的屬性 ID。
CDBPropIDSet::CDBPropIDSet
建構函式。 rgProperties
初始化 DBPROPIDSET 結構的 、 cProperties
和 (選擇性) 欄位。guidPropertySet
語法
CDBPropIDSet(const GUID& guid);
CDBPropIDSet(const CDBPropIDSet& propidset);
CDBPropIDSet();
參數
guid
[in]用來初始化欄位的 guidPropertySet
GUID。
propidset
[in] 複製建構的另一個 CDBPropIDSet
物件。
CDBPropIDSet::SetGUID
設定結構中的 DBPROPIDSET
GUID 欄位。
語法
void SetGUID(const GUID& guid) throw();
參數
guid
[in]用來設定 guidPropertySet
DBPROPIDSET 結構的欄位的 GUID。
備註
建構函式也可以設定此欄位。 如果您為這個類別使用預設建構函式,則呼叫此函式。
CDBPropIDSet::operator =
將一個屬性 ID 集的內容指派至另一個 ID 屬性集。
語法
CDBPropIDSet& operator =(CDBPropIDSet& propset) throw();