我有一个列表,它有自定义内容类型,该列表还包含子文件夹
如何使用特定子文件夹中的Web服务将项目添加到列表中?
答案 0 :(得分:0)
Dim MyQuery As New SPQuery()
MyQuery.Query =查询'设置查询
MyQuery.ViewFields = ViewFields'设置ViewFields
MyQuery.RowLimit = 0
MyQuery.ViewAttributes =“BaseViewID =”“1”“Scope =”“递归”“”
MyQuery.Folder = Folder'设置列表的子文件夹
MyQuery.Query =查询'设置查询
Dim MyItemCollection As SPListItemCollection = List.GetItems(MyQuery)