SPFile.CheckIn method (String, SPCheckinType)

Checks in the file to a document library based on the specified comment and type of check in to perform.

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


Public Sub CheckIn ( _
    comment As String, _
    checkInType As SPCheckinType _
Dim instance As SPFile
Dim comment As String
Dim checkInType As SPCheckinType

instance.CheckIn(comment, checkInType)
public void CheckIn(
    string comment,
    SPCheckinType checkInType


  • comment
    Type: System.String

    A string that contains a comment about the check-in.


Exception Condition

checkInType is greater than OverwriteCheckIn or less than MinorCheckIn, or an error occurred when checking in the file.

See also


SPFile class

SPFile members

CheckIn overload

Microsoft.SharePoint namespace