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

Lists.ApplyContentTypeToList Method

Windows SharePoint Services 3
Adds the specified site content type to a list, as a list content type.

Web Service: ListsWeb Reference: http://<Site>/_vti_bin/Lists.asmx
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/ApplyContentTypeToList", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public XmlNode ApplyContentTypeToList (
	string webUrl,
	string contentTypeId,
	string listName



The URL of the site in which the list is located.


The content type ID of the site content type to add to the list as a list content type.


The name of the list.

Return Value

A string, in the following format, indicating that the method succeeded.
<Success xmlns="http://schemas.microsoft.com/sharepoint/soap/"/>
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.