Webs.UpdateContentType Method (Webs)
Webs.UpdateContentType Method (Webs)
Updates the specified site content type.

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

'Usage

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)

'Declaration

<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

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.

newFields

A string that represents the collection of columns to add to the site content type.

Format the column collection as a FieldRefs Element (ContentType) element, where each FieldRef Element (ContentType) child element references a site column to add to the site content type.

updateFields

A string that represents the collection of columns to update on the site.

Format the column collection as a FieldRefs Element (ContentType) element, where each FieldRef Element (ContentType) child element references a column to update on the site content type.

In each FieldRef Element (ContentType) child element, include the element attributes for the column properties you want to update.

deleteFields

A string that represents the collection of columns to delete from the site content type.

Format the column collection as a FieldRefs Element (ContentType) element, where each FieldRef Element (ContentType) child element references a column to delete from the site content type.

In each FieldRef Element (ContentType) child element, include the ID attributes for the column you want to delete.

See Also

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View