Lists.UpdateContentTypesXmlDocument method
新增或覆寫指定的XMLDocument元素在指定的清單上的所有內容類型。
Namespace: WebSvcLists
Assembly: STSSOAP (in STSSOAP.dll)
Syntax
'宣告
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/UpdateContentTypesXmlDocument", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function UpdateContentTypesXmlDocument ( _
listName As String, _
newDocument As XmlNode _
) As XmlNode
'用途
Dim instance As Lists
Dim listName As String
Dim newDocument As XmlNode
Dim returnValue As XmlNode
returnValue = instance.UpdateContentTypesXmlDocument(listName, _
newDocument)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/UpdateContentTypesXmlDocument", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public XmlNode UpdateContentTypesXmlDocument(
string listName,
XmlNode newDocument
)
參數
listName
Type: System.StringString,代表清單的名稱。
newDocument
Type: System.Xml.XmlNode字串,代表要取代現有的 XML 文件的 XML 文件。
傳回值
Type: System.Xml.XmlNode
一個字串,以下列格式,指出在方法成功。
<Success xmlns="https://schemas.microsoft.com/sharepoint/soap/"/>
備註
SharePoint Foundation會識別要找出相符的 URI 傳遞newDocument參數中的 XML 文件會覆寫之內容類型中的 XML 文件。
如果 XML 文件中的內容類型不存在, SharePoint Foundation會將其新增至內容類型。
You can use XMLDocument elements to store custom information in content type definitions. For more information, see Custom Information in Content Types.