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