ICAProfileCollection

[ 
    object, 
    uuid(CEC2A60C-3637-4D98-ABED-FDB710113F91), 
    dual, 
    nonextensible, 
    helpstring("ICAProfileCollection Interface"), 
    pointer_default(unique) 
] 
interface ICAProfileCollection : IDispatch{ 
    [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] LONG* pVal); 
    [propget, id(2), helpstring("property Item")] HRESULT Item([in] LONG lIndex, [out, retval] IDispatch** pVal); 
    [propget, id(3), helpstring("property DefaultProfile")] HRESULT DefaultProfile([out, retval] IDispatch** pVal); 
    [propget, id(4), helpstring("property ProfileForEdit")] HRESULT ProfileForEdit([out, retval] IDispatch** pVal); 
    [id(5), helpstring("method Add")] HRESULT Add([in] IDispatch* pDispProfile, [out,retval] LONG* pnIndex); 
    [id(6), helpstring("method Delete")] HRESULT Delete([in] LONG lIndex); 
    [id(7), helpstring("method GetProfileByName")] HRESULT GetProfileByName([in] BSTR bstrName, [out,retval] IDispatch** ppDispProfile); 
};

ProgID
CyberArticleBook.CAProfileCollection
C/C++头文件
CyberArticleBook.h; CyberArticleBook_i.c
 

属性 Count

获得配置文件数量。只读

参数

类型

  • get: [out, retval] LONG* pVal:返回数量
  • put: 无

属性 Item

获得一个配置文件。只读

参数

  • [in] LONG nIndex:配置文件索引。(0 到 Count - 1)

类型

  • get: [out, retval] IDispatch** pVal:返回配置文件 (ICAProfile)
  • put: 无

属性 DefaultProfile

获得默认的配置文件

参数

类型

  • get: [out, retval] IDispatch** pVal:返回默认配置文件 (ICAProfile)
  • put: 无

属性 ProfileForEdit

获得用于保存编辑后的文章的配置文件

参数

类型

  • get: [out, retval] IDispatch** pVal:返回配置文件 (ICAProfile)
  • put: 无

方法 Add

添加一个配置文件

参数

  • [in] IDispatch* pDisp:需要添加的配置文件 (ICAProfile)

返回

  • [out, retval] LONG* plIndex:返回添加后的配置文件索引。如果失败,返回-1

方法 Delete

删除一个配置文件

参数

  • [in] LONG lIndex:配置文件索引

返回

方法 GetProfileByName

通过名称获得配置文件

参数

  • [in] BSTR bstrName:配置文件名

返回

  • [out, retval] IDispatch** pVal:返回配置文件 (ICAProfile)