1

In the SharePoint 2010 Client-Side Object Model, both

File.CheckIn("", CheckinType.MajorCheckIn);

and

File.Publish("");

appear to do the same thing. Are there any differences, advantages of using one over the other?

Thanks!

0

What i believe, both are different one is for checkin documents and other is for publishing.

Check In

  1. Check In/Check Out is a policy to avoid confusion while editing documents, you perform the Check In to unlock the file/page so that other users can edit it, at the same, you must set which kind of version you should check in(major version or minor version).Checks the file in to a document library based on the check-in type.

Publish

  1. Perform this action to publish the page/file to published major version.Submits the file for content approval with the specified comment.
0

File.CheckIn - Allows to only check in the file

File.Publish - This will this will do a Major Checkin and submits for approval.

  • File.CheckIn("", CheckinType.MajorCheckIn) also submits for approval. – Eccentropy Apr 8 '15 at 21:13
  • Ok. In that case I don't see any difference 😊 – Amal Hashim Apr 8 '15 at 21:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.