共用方式為


Lists.UndoCheckOut method

復原取出指定的文件 SharePoint 文件庫中。

Namespace:  WebSvcLists
Assembly:  STSSOAP (in STSSOAP.dll)

Syntax

'宣告
<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
    Type: System.String

    內含文件的完整路徑的字串。

傳回值

Type: System.Boolean
true如果作業成功 ;否則,請false。

Examples

下列範例會復原取出的檔案從共享文件中的子網站。

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 class

Lists members

WebSvcLists namespace