UndoCheckOut Method

The UndoCheckOut method of the SPFile class undoes the file check-out.

Example

The following code example undoes the check-out for files in the Shared Documents document library of a subsite if the specified user is the one who checked them out.

This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.WebControls namespaces.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security