Compartir a través de


File.CheckOut Method

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

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Sub CheckOut
'Usage
Dim instance As File

instance.CheckOut()
[RemoteAttribute]
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