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
Lists Members
Lists Web Service
Content Type IDs
Site and List Content Types
[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 )
Parameters
- webUrl
The URL of the site in which the list is located.
- contentTypeId
The content type ID of the site content type to add to the list as a list content type.
- listName
The name of the list.
Return Value
A string, in the following format, indicating that the method succeeded.Reference
Lists ClassLists Members
Lists Web Service
Other Resources
Content TypesContent Type IDs
Site and List Content Types