命名空间: WebSvcLists
程序集: STSSOAP(位于 STSSOAP.dll 中)
语法
声明
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/UpdateListItemsWithKnowledge", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function UpdateListItemsWithKnowledge ( _
listName As String, _
updates As XmlNode, _
syncScope As String, _
knowledge As XmlNode _
) As XmlNode
用法
Dim instance As Lists
Dim listName As String
Dim updates As XmlNode
Dim syncScope As String
Dim knowledge As XmlNode
Dim returnValue As XmlNode
returnValue = instance.UpdateListItemsWithKnowledge(listName, _
updates, syncScope, knowledge)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/UpdateListItemsWithKnowledge", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public XmlNode UpdateListItemsWithKnowledge(
string listName,
XmlNode updates,
string syncScope,
XmlNode knowledge
)
参数
listName
类型:System.StringGUID 或要从中检索列表项列表标题的列表。如果指定的列表,用户信息列表字符串设置为"用户信息"或"用户信息列表"。
updates
类型:System.Xml.XmlNode指定列表项上执行的操作。
syncScope
类型:System.String指定同步的范围。如果使用空引用(无 在 Visual Basic 中),默认同步范围,则空的标识符。
knowledge
类型:System.Xml.XmlNode指定以 XML 格式的 Microsoft Sync Framework knowledge数据结构。如果不提供由客户端,在列表中的所有项目都返回,则受视图或重写rowLimit参数的默认行限制。如果指定,则响应将包括知识已检索到的行限制限制的制约之后对列表项所做的更改。
返回值
类型:System.Xml.XmlNode
返回一个XmlNode对象,该对象代表更新列表项以及项知识。
备注
在列表项上使用ows_hiddenversion字段的服务器端检测到冲突。如果字段的值与在数据库中的项的值不匹配,然后检测到冲突的更新,并向客户端返回一个错误。响应消息中还返回报告冲突项目。客户端必须然后获得新版本的列表项、 解决冲突,更新ows_hiddenversion字段的值,然后尝试再次更新项目。