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)

Syntax

'Declaration
Public Sub CheckIn ( _
    comment As String, _
    checkInType As SPCheckinType _
)
'Usage
Dim instance As SPFile
Dim comment As String
Dim checkInType As SPCheckinType

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

Parameters

  • comment
    Type: System.String

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

Exceptions

Exception Condition
SpException

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

See also

Reference

SPFile class

SPFile members

CheckIn overload

Microsoft.SharePoint namespace