ApplyContentTypeToList method

Lists.ApplyContentTypeToList method

Adds the specified site content type to a list, as a list content type.

Namespace:  WebSvcLists
Assembly:  STSSOAP (in STSSOAP.dll)

[SoapDocumentMethodAttribute("", RequestNamespace = "", 
	ResponseNamespace = "", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public XmlNode ApplyContentTypeToList(
	string webUrl,
	string contentTypeId,
	string listName


Type: System.String

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

Type: System.String

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

Type: System.String

The name of the list.

Return value

Type: System.Xml.XmlNode
A string, in the following format, indicating that the method succeeded.
<Success xmlns=""/>
© 2016 Microsoft