Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.StringA string that contains a comment about the check-in.
checkInType
Type: Microsoft.SharePoint.SPCheckinTypeAn enumeration value that specifies the type of check-in.
Exceptions
Exception | Condition |
---|---|
SpException | checkInType is greater than OverwriteCheckIn or less than MinorCheckIn, or an error occurred when checking in the file. |