次の方法で共有


Lists.UpdateContentTypesXmlDocument メソッド (websvcLists)

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

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

構文

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

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

パラメータ

  • listName
    リストの名前を表す文字列。
  • 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