Compartilhar via


Lists.CheckInFile Method

Permite documentos a ser verificado na um Biblioteca de Documentos SharePoint remotamente.

Web Service: ListsWeb Reference: http://<Site>/_vti_bin/Lists.asmx

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)> _
PublicFunctionCheckInFile ( _
    pageUrlAsString, _
    commentAsString, _
    CheckinTypeAsString _
) AsBoolean
'Uso
DiminstanceAsListsDimpageUrlAsStringDimcommentAsStringDimCheckinTypeAsStringDimreturnValueAsBooleanreturnValue = 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)] 
publicboolCheckInFile (
    stringpageUrl,
    stringcomment,
    stringCheckinType
)

Parameters

  • pageUrl
    Uma seqüência de caracteres que contém o caminho completo para o documento para fazer check-in.
  • comment
    Uma seqüência de caracteres contendo comentários de check-in opcionais.
  • CheckinType
    Um representação de seqüência de caracteres dos valores de 0, 1 ou 2, onde 0 = MinorCheckIn, 1 = MajorCheckIn e 2 = OverwriteCheckIn.

    Observação

    Esses valores mapa (n.); mapear (v.) para a enumeração Microsoft.SharePoint.SPCheckinType.

Return Value

true Se a operação foi bem-sucedida; caso contrário, false.

Example

O exemplo a seguir verifica em um arquivo para Shared Documents 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");

See Also

Reference

Lists Class
Lists Members
Lists Web Service