In this article we will be seeing how to get all holds lists from the SharePoint site using object model.

I have created a SharePoint site and I have activated the site feature (Go to Site Actions => Site Settings => Site Actions => Manage Site Features) "Hold and eDiscovery".

HoldsShare1.gif

Once you have created the feature you could be able to see the following options (Site Actions => Site Settings => Hold and eDiscovery).

HoldsShare2.gif

We will be seeing how to get all holds lists for the SharePoint site. We will be using Hold.GetAllHoldsLists Method to get all holds list.

Hold.GetAllHoldsLists Method

Gets all holds lists in a specified site.

Steps Involved: