Visual Basic (Declaration)
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/CreateContentType", RequestNamespace:="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace:="http://schemas.microsoft.com/sharepoint/soap/", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
Public Function CreateContentType ( _
listName As String, _
displayName As String, _
parentType As String, _
fields As XmlNode, _
contentTypeProperties As XmlNode, _
addToView As String _
) As String
Dim instance As Lists
Dim listName As String
Dim displayName As String
Dim parentType As String
Dim fields As XmlNode
Dim contentTypeProperties As XmlNode
Dim addToView As String
Dim returnValue As String
returnValue = instance.CreateContentType(listName, displayName, parentType, fields, contentTypeProperties, addToView)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/CreateContentType", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)]
public string CreateContentType (
string listName,
string displayName,
string parentType,
XmlNode fields,
XmlNode contentTypeProperties,
string addToView
)