Share via


Lists.UpdateContentTypeXmlDocument メソッド (websvcLists)

特定のリスト コンテンツ タイプ内の指定した XMLDocument 要素を追加または上書きします。

名前空間: websvcLists
アセンブリ: STSSOAP (stssoap.dll 内)

構文

'宣言
<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
'使用
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
)

パラメータ

  • listName
    リストの名前を表す文字列。
  • contentTypeId
    追加または更新する XMLDocument 要素に関連するコンテンツ タイプのコンテンツ タイプ ID を表す文字列。
  • newDocument
    既存の XML ドキュメントを置き換える XML ドキュメントを表す文字列。

戻り値

以下の形式の、メソッドが成功したことを示す文字列。

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

備考

Windows SharePoint Services は、newDocument パラメータで渡された XML ドキュメントの URI を照合して、コンテンツ タイプ内の上書きする XML ドキュメントを識別します。

コンテンツ タイプ内に XML ドキュメントが存在しない場合、Windows SharePoint Services はそれをコンテンツ タイプに追加します。

コンテンツ タイプ定義内のユーザー設定情報を保存するには、XMLDocument 要素を使用できます。詳細については、「コンテンツ タイプのユーザー設定情報」を参照してください。

関連項目

参照

Lists クラス
Lists メンバ
websvcLists 名前空間

その他のリソース

コンテンツ タイプ
コンテンツ タイプ ID