File.UndoCheckOut method
Reverts an existing checkout for the file.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Sub UndoCheckOut
'Usage
Dim instance As File
instance.UndoCheckOut()
public void UndoCheckOut()
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPFileCheckOutException] | File is not checked out to the current user. Error code: -2147024738. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |