Поделиться через


Метод Lists.UndoCheckOut

Отменяет извлечение данного документа в библиотеке документов 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
    Тип: System.String

    Строка, содержащая полный путь к документу.

Возвращаемое значение

Тип: System.Boolean
true , если операция выполнена успешно; в противном случае — false.

Примеры

Следующий пример отменяет извлечение файла из общих документов в дочернем сайте.

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