Share via


Lists.DeleteList メソッド (websvcLists)

指定したリストを削除します。

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

構文

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

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

パラメータ

  • listName
    リストのタイトルまたは GUID のどちらかを含む文字列。

次のコード例では、指定したリストを現在のサイトから削除します。

Dim listService As New Web_Reference_Folder.Lists()
listService.Credentials = System.Net.CredentialCache.DefaultCredentials

listService.DeleteList("List_Name")
Web_Reference_Folder.Lists listService = new Web_Reference_Folder.Lists();
listService.Credentials= System.Net.CredentialCache.DefaultCredentials;

listService.DeleteList("List_Name");

関連項目

参照

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