ICAArticleResourceCollection

[ 
    object, 
    uuid(2D906CF2-E8E1-4CF8-B83C-B56B243261CB), 
    dual, 
    nonextensible, 
    helpstring("ICAArticleResourceCollection Interface"), 
    pointer_default(unique) 
] 
interface ICAArticleResourceCollection : 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 ItemFromName")] HRESULT ItemFromName([in] BSTR bstrResourceName, [out, retval] IDispatch** pVal); 
    [id(4), helpstring("method BeginUpdate")] HRESULT BeginUpdate(void); 
    [id(5), helpstring("method EndUpdate")] HRESULT EndUpdate(void); 
    [id(6), helpstring("method Delete")] HRESULT Delete([in] BSTR bstrResourceName); 
    [id(7), helpstring("method Update")] HRESULT Update([in] BSTR bstrResourceName, [in] BSTR bstrFileName); 
    [id(8), helpstring("method GetArticleSourceCode")] HRESULT GetArticleSourceCode([out,retval] BSTR* pbstrText); 
    [id(9), helpstring("method SetArticleSourceCode")] HRESULT SetArticleSourceCode([in] BSTR bstrText); 
};

ProgID
CyberArticleBook.CAArticleResourceCollection
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:返回文章资源 (ICAArticleResource)
  • put: 无

属性 ItemFromName

通过名称或的资源

参数

  • [in] BSTR bstrResourceName:资源名称

类型

  • get: [out, retval] IDispatch** pVal:返回文章资源 (ICAArticleResource)
  • put: 无

方法 BeginUpdate

开始更新/删除资源。如果需要更新某一个资源,请在更新之前调用BeginUpdate,更新完之后,调用EndUpdate。

参数

返回

方法 EndUpdate

开始更新/删除资源。如果需要更新某一个资源,请在更新之前调用BeginUpdate,更新完之后,调用EndUpdate。

参数

返回

方法 Delete

删除一个资源

参数

  • [in] BSTR bstrResourceName:需要删除的资源名称

返回

方法 Update

更新一个资源。该函数从指定的文件读取数据,然后使用该数据,更新指定的资源数据。

参数

  • [in] BSTR bstrResourceName:需要更新的资源名称
  • [in] BSTR bstrFileName:资源文件名。

返回

方法 GetArticleSourceCode 

获得文章源代码

参数

返回

  • [out,retval] BSTR* pbstrText:文章源代码

方法 GetArticleSourceCode 

设置文章源代码

参数

  • [in] BSTR bstrText:文章源代码

返回