Red Swan
Red Swan

Reputation: 15545

How to check the file is in check in mode or not in c#

I am getting the document of particular document library of a sharepoint site in C#. I want to check whether the file in checkin mode or in checkout mode . how can i do that. can any one help me?

Upvotes: 2

Views: 1723

Answers (1)

Jeroen Ritmeijer
Jeroen Ritmeijer

Reputation: 2792

Here you go, change parameter name as needed

if (spDestinationFile.Item.ParentList.ForceCheckout == true)

Have a look at this post about how it can be used.

Upvotes: 1

Related Questions