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("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
Type: System.String

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

contentTypeId
Type: System.String

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

listName
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="http://schemas.microsoft.com/sharepoint/soap/"/>
Show:
© 2016 Microsoft