ICAAttachment[ object, uuid(FA840596-05D9-4B5A-854D-BA42D256F886), dual, nonextensible, helpstring("ICAAttachment Interface"), pointer_default(unique) ] interface ICAAttachment : IDispatch{ [propget, id(1), helpstring("property ID")] HRESULT ID([out, retval] LONG* pVal); [propget, id(2), helpstring("property Name")] HRESULT Name([out, retval] BSTR* pVal); [propput, id(2), helpstring("property Name")] HRESULT Name([in] BSTR newVal); [propget, id(3), helpstring("property URL")] HRESULT URL([out, retval] BSTR* pVal); [propput, id(3), helpstring("property URL")] HRESULT URL([in] BSTR newVal); [propget, id(4), helpstring("property Size")] HRESULT Size([out, retval] LONG* pVal); [propput, id(5), helpstring("property Text")] HRESULT Text([in] BSTR newVal); [propget, id(6), helpstring("property Node")] HRESULT Node([out, retval] IDispatch** pVal); [id(7), helpstring("method SaveToStream")] HRESULT SaveToStream([in] IStream* pStream); [id(8), helpstring("method Update")] HRESULT Update([in] IStream* pStream); [id(9), helpstring("method Delete")] HRESULT Delete(void); [id(10), helpstring("method Reload")] HRESULT Reload(void); };
属性 ID获得附件ID
参数无
类型
属性 Name获得/设置附件名称
参数无
类型
属性 URL获得/设置附件来源URL
参数无
类型
属性 Size获得附件数据大小
参数无
类型
属性 Text获得附件文字
参数无
类型
属性 Node获得附件所属的文章。
参数无
类型
方法 SaveToStream将附件数据保存到Stream里面。
参数
返回无
方法 Update更新附件数据。
参数
返回无
方法 Delete删除附件
参数无
返回无
方法 Reload重新从数据库中获得附件的数据
参数无
返回无 |
|||||
|