Partager via


Lists.CreateContentType, méthode (Microsoft.SharePoint.Portal.WebControls)

Ce membre est réservé à un usage interne et il n'a pas été conçu pour être utilisé directement à partir du code.

Espace de noms : Microsoft.SharePoint.Portal.WebControls
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
<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
'Utilisation
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
)

Paramètres

  • listName
  • displayName
  • parentType
  • Fields
  • contentTypeProperties

Voir aussi

Référence

Lists, classe
Membres Lists
Microsoft.SharePoint.Portal.WebControls, espace de noms