Wednesday, May 27, 2015

SharePoint Checked-out file details in a specific Document library

SharePoint Checked-out files details in a specific Document library


  SPDocumentLibrary docLibrary = (SPDocumentLibrary)web.Lists.TryGetList("Admin");
                    foreach (SPCheckedOutFile coFile in docLibrary.CheckedOutFiles)
                    {
                        Console.WriteLine(coFile.LeafName);
                        Console.WriteLine(coFile.DirName);
                        Console.WriteLine(coFile.CheckedOutByName);
                        Console.WriteLine("\n");
                    }

No comments:

Post a Comment