다음을 통해 공유


Webs.RemoveContentTypeXmlDocument Method

Removes the specified XmlDocument Element (ContentType) element from the specified site content type.

Namespace:  [Webs Web service]
Web service reference: http://Site/_vti_bin/Webs.asmx

Syntax

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

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

Parameters

  • contentTypeId
    Type: System.String

    A string that represents the content type ID for the site content type.

  • documentUri
    Type: System.String

    A string that represents the URI of the XMLDocument element to remove.

Return Value

Type: System.Xml.XmlNode
A string, in the following format, indicating that the method succeeded.

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

Remarks

You can use XmlDocument Element (ContentType) elements to store custom information in content type definitions. For more information, see Custom Information in Content Types.

See Also

Reference

Webs Class

Webs Members

Webs Web Service