Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Webs.UpdateContentType Method

Windows SharePoint Services 3
Updates the specified site content type.

Web Service: WebsWeb Reference: http://<Site>/_vti_bin/Webs.asmx
[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.

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.