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 the file in to a document library based on the check-in type.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Sub CheckIn ( _
comment As String, _
checkInType As CheckinType _
)
'Usage
Dim instance As File
Dim comment As String
Dim checkInType As CheckinType
instance.CheckIn(comment, checkInType)
public void CheckIn(
string comment,
CheckinType checkInType
)
Parameters
comment
Type: System.StringSpecifies a comment for the check-in.
Its length must be equal to or less than 1023.
checkInType
Type: Microsoft.SharePoint.Client.CheckinTypeSpecifies the type of check-in.
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPFileCheckOutException] | File is not checked out. Error code: -2147024738. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |