In sharepoint how can you check in an SPListItem?
See on MSDN: SPListItem.File.CheckIn();
For example:
SPFile file = item.File;
if (file.CheckOutStatus != SPFile.SPCheckOutStatus.None)
{
file.CheckIn("Reason for check in.", SPCheckinType.MajorCheckIn);
}
The optional second parameter allows specification of either minor, major or overwrite check in via the SPCheckinType enumeration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With