CheckOut Method

The CheckOut method of the SPFile class checks out the file from a document library.

Example

The following code example shows how to check out all the files in the Shared Documents folder for a specified subsite.

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