Lists.UndoCheckOut Method
Desfaz o check-out de um determinado documento em um Biblioteca de Documentos do SharePoint.
Web Service: ListsWeb Reference: http://<Site>/_vti_bin/Lists.asmx
Syntax
'Declaração
<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)> _
PublicFunctionUndoCheckOut ( _
pageUrlAsString _
) AsBoolean
'Uso
DiminstanceAsListsDimpageUrlAsStringDimreturnValueAsBooleanreturnValue = 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)]
publicboolUndoCheckOut (
stringpageUrl
)
Parameters
- pageUrl
Uma seqüência de caracteres que contém o caminho completo para o documento.
Return Value
true Se a operação foi bem-sucedida; caso contrário, false.
Example
O exemplo a seguir desfaz o check-out de um arquivo de Shared Documents em um subsite.
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);