Lists.CheckInFile method
Permite que os documentos a serem verificados para uma biblioteca de documentos do SharePoint remotamente.
Namespace: WebSvcLists
Assembly: STSSOAP (in STSSOAP.dll)
Syntax
'Declaração
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/CheckInFile", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function CheckInFile ( _
pageUrl As String, _
comment As String, _
CheckinType As String _
) As Boolean
'Uso
Dim instance As Lists
Dim pageUrl As String
Dim comment As String
Dim CheckinType As String
Dim returnValue As Boolean
returnValue = instance.CheckInFile(pageUrl, _
comment, CheckinType)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/CheckInFile", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public bool CheckInFile(
string pageUrl,
string comment,
string CheckinType
)
Parâmetros
pageUrl
Type: System.StringUma cadeia de caracteres que contém o caminho completo para o documento fazer check-in.
comment
Type: System.StringUma cadeia de caracteres que contém os comentários de check-in opcionais.
CheckinType
Type: System.StringUma representação de cadeia de caracteres dos valores 0, 1 ou 2, onde 0 = MinorCheckIn, 1 = MajorCheckIne 2 = OverwriteCheckIn.
Valor retornado
Type: System.Boolean
true se a operação foi bem-sucedida; Caso contrário, false.
Examples
O exemplo a seguir verifica em um arquivo para documentos compartilhados em um subsite.
Dim listService As New Web_Reference_Folder.Lists()
listService.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim fileCheckin As String = "http://Server_Name/sites/Subsite/Shared Documents/MyFile.txt"
Dim myResults As Boolean = listService.CheckIn(fileCheckin, "Completed revision.", "1")
Web_Reference_Folder.Lists listService = new Web_Reference_Folder.Lists();
listService.Credentials = System.Net.CredentialCache.DefaultCredentials;
string fileCheckin = "http://Server_Name/sites/Subsite/Shared Documents/MyFile.txt";
bool myResults = listService.CheckIn(fileCheckin, "Completed revision.", "1");