Freigeben über


Lists.ApplyContentTypeToList-Methode

Fügt der angegebenen Website-Inhaltstyp zu einer Liste als einem Listeninhaltstyp hinzu.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/ApplyContentTypeToList", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function ApplyContentTypeToList ( _
    webUrl As String, _
    contentTypeId As String, _
    listName As String _
) As XmlNode
'Usage
Dim instance As Lists
Dim webUrl As String
Dim contentTypeId As String
Dim listName As String
Dim returnValue As XmlNode

returnValue = instance.ApplyContentTypeToList(webUrl, _
    contentTypeId, listName)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/ApplyContentTypeToList", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/", 
    ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public XmlNode ApplyContentTypeToList(
    string webUrl,
    string contentTypeId,
    string listName
)

Parameter

  • webUrl
    Typ: System.String

    Die URL der Website, in der sich die Liste befindet.

  • contentTypeId
    Typ: System.String

    Die Inhaltstyp-ID des Websiteinhaltstyps, um die Liste als einem Listeninhaltstyp hinzuzufügen.

Rückgabewert

Typ: System.Xml.XmlNode
Eine Zeichenfolge im folgenden Format, was bedeutet, dass die Methode erfolgreich ausgeführt wurde.

<Success xmlns="https://schemas.microsoft.com/sharepoint/soap/"/>

Siehe auch

Referenz

Lists Klasse

Lists-Member

WebSvcLists-Namespace

Weitere Ressourcen

Content Types

Content Type IDs

Site and List Content Types