Lists.UndoCheckOut method
Desfaz o check-out de um determinado documento em uma biblioteca de documentos do SharePoint.
Namespace: WebSvcLists
Assembly: STSSOAP (in STSSOAP.dll)
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)> _
Public Function UndoCheckOut ( _
pageUrl As String _
) As Boolean
'Uso
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
)
Parâmetros
pageUrl
Type: System.StringUma cadeia de caracteres que contém o caminho completo para o documento.
Valor retornado
Type: System.Boolean
true se a operação foi bem-sucedida; Caso contrário, false.
Examples
O exemplo a seguir desfaz o check-out de um arquivo de documentos compartilhados 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);