File.CheckOut method

Checks out the file from a document library based on the check out type.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Sub CheckOut
'Usage
Dim instance As File

instance.CheckOut()
public void CheckOut()

Exceptions

Exception Condition
[Microsoft.SharePoint.SPFileCheckOutException]

Checkout arguments are not valid. Error code: -2147023436.

[Microsoft.SharePoint.SPFileCheckOutException]

File is already checked out. Error code: -2130575306.

[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: -2147024891.

See also

Reference

File class

File members

Microsoft.SharePoint.Client namespace