Showing posts with label List Of Solutions(.wsp) Present in SharePoint Farm. Show all posts
Showing posts with label List Of Solutions(.wsp) Present in SharePoint Farm. Show all posts

Monday, November 25, 2013

List Of Solutions(.wsp) Present in SharePoint Farm (method will return an List)

public List<Solution> GetSolutions()
  {
   List<Solution> solutions = new List<Solution>();
   foreach (SPSolution sol in SPFarm.Local.Solutions)
   {
    Solution s = new Solution();
    s.Name = sol.Name;
    s.Deployed = sol.Deployed;
    solutions.Add(s);
   }
   return solutions ;
  }