Share via


Lists.UpdateContentTypeXmlDocument-Methode

Fügt oder überschreibt das angegebene XMLDocument -Element in der Inhaltstyp der angegebenen Liste.

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

Syntax

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

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

Parameter

  • listName
    Typ: System.String

    Eine Zeichenfolge, die den Namen der Liste darstellt.

  • contentTypeId
    Typ: System.String

    ID des Inhaltstyps, der zum Hinzufügen oder aktualisieren Sie das Element XMLDocument Geben Sie eine Zeichenfolge, die Inhalte darstellt.

  • newDocument
    Typ: System.Xml.XmlNode

    Eine Zeichenfolge, die das XML-Dokument ersetzen das vorhandene XML-Dokument darstellt.

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/"/>

Hinweise

SharePoint Foundation identifiziert das XML-Dokument im Inhaltstyp Überschreiben von übereinstimmender URI des XML-Dokuments in der newDocument -Parameter übergeben.

Wenn das XML-Dokument im Inhaltstyp nicht vorhanden ist, fügt Sie SharePoint Foundation für den Inhaltstyp hinzu.

You can use XMLDocument elements to store custom information in content type definitions. For more information, see Custom Information in Content Types.

Siehe auch

Referenz

Lists Klasse

Lists-Member

WebSvcLists-Namespace

Weitere Ressourcen

Content Types

Content Type IDs