Lists.UndoCheckOut - Méthode
Annule l'extraction d'un document donné dans une bibliothèque de documents SharePoint.
Espace de noms : WebSvcLists
Assembly : STSSOAP (dans STSSOAP.dll)
Syntaxe
'Déclaration
<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
'Utilisation
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
)
Paramètres
pageUrl
Type : System.StringChaîne qui contient le chemin d'accès complet au document.
Valeur renvoyée
Type : System.Boolean
true si l'opération a réussi ; dans le cas contraire, false.
Exemples
L'exemple suivant annule l'extraction d'un fichier à partir de Documents partagés dans un sous-site.
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);