Webs.UpdateContentType Method

Updates the specified site content type.

Web Service: WebsWeb Reference: http://<Site>/_vti_bin/Webs.asmx

Syntax

<SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/UpdateContentType", RequestNamespace:="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace:="http://schemas.microsoft.com/sharepoint/soap/", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
Public Function UpdateContentType ( _
    contentTypeId As String, _
    contentTypeProperties As XmlNode, _
    newFields As XmlNode, _
    updateFields As XmlNode, _
    deleteFields As XmlNode _
) As XmlNode

Dim instance As Webs
Dim contentTypeId As String
Dim contentTypeProperties As XmlNode
Dim newFields As XmlNode
Dim updateFields As XmlNode
Dim deleteFields As XmlNode
Dim returnValue As XmlNode

returnValue = instance.UpdateContentType(contentTypeId, contentTypeProperties, newFields, updateFields, deleteFields)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/UpdateContentType", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public XmlNode UpdateContentType (
    string contentTypeId,
    XmlNode contentTypeProperties,
    XmlNode newFields,
    XmlNode updateFields,
    XmlNode deleteFields
)

Parameters

  • contentTypeId
    A string that represents the content type ID of the site content type to update.
  • contentTypeProperties
    A string that represents the properties to update on the site content type.

    Format the properties as a ContentType Element (ContentType) element, and include the element attributes for the properties you want to update.

See Also

Reference

Webs Class
Webs Members
Webs Web Service