Lists.CheckInFile-Methode
Dokumente in einer SharePoint-Dokumentbibliothek Remote eingecheckt werden können.
Namespace: WebSvcLists
Assembly: STSSOAP (in STSSOAP.dll)
Syntax
'Declaration
<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
'Usage
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
)
Parameter
pageUrl
Typ: System.StringEine Zeichenfolge, die den vollständigen Pfad zum Dokument zum Einchecken enthält.
comment
Typ: System.StringEine Zeichenfolge mit optionalen Eincheckkommentare.
CheckinType
Typ: System.StringEine Zeichenfolgendarstellung der Werte 0, 1 oder 2, wobei 0 = MinorCheckIn, 1 = MajorCheckInund 2 = OverwriteCheckIn.
Rückgabewert
Typ: System.Boolean
true , wenn der Vorgang erfolgreich war; andernfalls false.
Beispiele
Das folgende Beispiel überprüft in einer Datei in Freigegebene Dokumente auf einer Unterwebsite.
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");