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.StringDie URL der Website, in der sich die Liste befindet.
contentTypeId
Typ: System.StringDie Inhaltstyp-ID des Websiteinhaltstyps, um die Liste als einem Listeninhaltstyp hinzuzufügen.
listName
Typ: System.StringDer Name der Liste.
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/"/>