Export (0) Print
Expand All

Lists.UpdateContentTypeXmlDocument method

Adds or overwrites the specified XMLDocument element in the specified list content type.

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

'Declaration
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/UpdateContentTypeXmlDocument", RequestNamespace := "http://schemas.microsoft.com/sharepoint/soap/",  _
	ResponseNamespace := "http://schemas.microsoft.com/sharepoint/soap/",  _
	Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
PublicFunctionUpdateContentTypeXmlDocument ( _
	listNameAsString, _
	contentTypeIdAsString, _
	newDocumentAsXmlNode _
) AsXmlNode
'Usage
DiminstanceAsListsDimlistNameAsStringDimcontentTypeIdAsStringDimnewDocumentAsXmlNodeDimreturnValueAsXmlNodereturnValue = instance.UpdateContentTypeXmlDocument(listName, _
	contentTypeId, newDocument)

Parameters

listName
Type: System.String

A string that represents the name of the list.

contentTypeId
Type: System.String

A string that represents the content type ID of the content type to which to add or update the XMLDocument element.

newDocument
Type: System.Xml.XmlNode

A string representing the XML document to replace the existing XML document.

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/"/>

SharePoint Foundation identifies the XML document to overwrite in the content type by matching the URI of the XML document passed in the newDocument parameter.

If the XML document does not exist in the content type, SharePoint Foundation adds it to the content type.

You can use XMLDocument elements to store custom information in content type definitions. For more information, see Custom Information in Content Types.

Community Additions

ADD
Show:
© 2014 Microsoft