IProfileCollection

表示程式庫以單位方式執行的設定檔集合。 介面提供函式,可讓用戶端將設定檔新增至集合、比較設定檔與集合中已經有的設定檔、從集合中移除一或所有設定檔。

Syntax

{
    [id(1), helpstring("Add")] HRESULT Add([in] IProfile* pProfile, [in] VARIANT_BOOL fMerge);
    [id(2), helpstring("Remove")] HRESULT Remove([in] IProfile* pProfile);
    [id(3), helpstring("Clear")] HRESULT Clear();
    [id(4), helpstring("IsEqual")] HRESULT IsEqual([in] IProfileCollection* pProfileCollection);    [id(5), helpstring("LoadIntoXML")] HRESULT LoadIntoXML([out] BSTR* pbstrResults);
};

函式

下表描述這個介面所提供的函式。

函式 描述

加入

將設定檔新增至集合。

移除

從集合中移除設定檔。

清除

清除集合中的所有設定檔。

IsEqual

比較兩個 IProfileCollection 物件,以查看它們是否有相符的配置檔案屬性。

LoadIntoXML

介面