Share via


SP.File.checkIn(comment, checkInType) Method

Applies to: SharePoint Foundation 2010

Checks the file in to a document library based on the check-in type.

SP.File.checkIn(comment, checkInType);

Parameters

  • comment
    Specifies a comment for the check-in.

    Its length must be equal to or less than 1023.

Type: String

  • checkInType
    Specifies the type of check-in.

Type: SP.CheckinType

Applies To

SP.File Class

Exceptions

  • [Microsoft.SharePoint.SPFileCheckOutException]
    File is not checked out. Error code: -2147024738.
  • [System.UnauthorizedAccessException]
    The current user has insufficient permissions. Error code: -2147024891.

See Also

Reference

SP.File Methods

SP.File Properties

SP Namespace