Lists.ApplyContentTypeToList メソッド (websvcLists)
指定したサイト コンテンツ タイプをリスト コンテンツ タイプとして、リストに追加します。
名前空間: websvcLists
アセンブリ: STSSOAP (stssoap.dll 内)
構文
'宣言
<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
'使用
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
)
パラメータ
- webUrl
リストが存在するサイトの URL。
- contentTypeId
リスト コンテンツ タイプとしてリストに追加するサイト コンテンツ タイプのコンテンツ タイプ ID。
- listName
リストの名前。
戻り値
以下の形式の、メソッドが成功したことを示す文字列。
<Success xmlns="https://schemas.microsoft.com/sharepoint/soap/"/>
関連項目
参照
Lists クラス
Lists メンバ
websvcLists 名前空間