Lists.CreateContentType Method
This member is reserved for internal use and is not intended to be used directly from your code.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/CreateContentType", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
ResponseNamespace := "https://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 _
) As String
'Usage
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 returnValue As String
returnValue = instance.CreateContentType(listName, _
displayName, parentType, Fields, _
contentTypeProperties)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/CreateContentType", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public string CreateContentType(
string listName,
string displayName,
string parentType,
XmlNode Fields,
XmlNode contentTypeProperties
)
Parameters
- listName
Type: System.String
- displayName
Type: System.String
- parentType
Type: System.String
- Fields
Type: System.Xml.XmlNode
- contentTypeProperties
Type: System.Xml.XmlNode
Return Value
Type: System.String