Webs.UpdateContentTypeXmlDocument Method
Adds or overwrites the specified XmlDocument Element (ContentType) element in the site content type.
Namespace: [Webs Web service]
Web service reference: http://Site/_vti_bin/Webs.asmx
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/UpdateContentTypeXmlDocument", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function UpdateContentTypeXmlDocument ( _
contentTypeId As String, _
newDocument As XmlNode _
) As XmlNode
'Usage
Dim instance As Webs
Dim contentTypeId As String
Dim newDocument As XmlNode
Dim returnValue As XmlNode
returnValue = instance.UpdateContentTypeXmlDocument(contentTypeId, _
newDocument)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/UpdateContentTypeXmlDocument", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public XmlNode UpdateContentTypeXmlDocument(
string contentTypeId,
XmlNode newDocument
)
Parameters
contentTypeId
Type: System.StringA string that represents the content type ID of the site content type.
newDocument
Type: System.Xml.XmlNodeA string that represents the XML document to replace the existing XML document.
Return Value
Type: System.Xml.XmlNode
A string, in the following format, indicating that the method succeeded.
<Success xmlns="https://schemas.microsoft.com/sharepoint/soap/"/>
Remarks
SharePoint Foundation identifies the XML document to overwrite in the content type by matching the URI of the XML document passed in the newDocument parameter.
If the XML document does not exist in the content type, SharePoint Foundation adds it to the content type.
You can use XmlDocument Element (ContentType) elements to store custom information in content type definitions. For more information, see Custom Information in Content Types.