Export (0) Print
Expand All

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 void CheckIn(
	string comment,
	SPCheckinType checkInType
)

Parameters

comment
Type: System.String

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

checkInType
Type: Microsoft.SharePoint.SPCheckinType

An enumeration value that specifies the type of check-in.

ExceptionCondition
SpException

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

Show:
© 2014 Microsoft