SP.File.undoCheckOut() Method
Applies to: SharePoint Foundation 2010
Reverts an existing checkout for the file.
SP.File.undoCheckOut();
Applies To
Exceptions
- [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.