Share via


Lists.UndoCheckOut メソッド (websvcLists)

SharePoint ドキュメント ライブラリ内にある指定したドキュメントのチェックアウトを元に戻します。

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

構文

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

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

パラメータ

  • pageUrl
    ドキュメントの完全パスを含む文字列。

戻り値

操作が成功した場合は true、それ以外の場合は false

次の例では、サブサイトにある Shared Documents からのファイルのチェックアウトを元に戻します。

Dim listService As New Web_Reference_Folder.Lists()

listService.Credentials = System.Net.CredentialCache.DefaultCredentials

Dim undoCheckout As String = "http://Server_Name/sites/Subsite/Shared Documents/MyFile.txt"

Dim undoCheckOut As Boolean = listService.UndoCheckOut(undoCheckout)
Web_Reference_Folder.Lists listService = new Web_Reference_Folder.Lists();

listService.Credentials = System.Net.CredentialCache.DefaultCredentials;

string undoCheckout = "http://Server_Name/sites/Subsite/Shared Documents/MyFile.txt";

bool undoCheckOut = listService.UndoCheckOut(undoCheckout);

関連項目

参照

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