Reading solutions from Sharepoint 2010 task in C #

I’m having a problem with the Sharepoint API client object model , and I haven’t found an answer or person on the Internet who can help me.

I try to make all the decisions for the task, and there is no “easy” way to get them. At the moment, I'm trying to programmatically read a template (" .xoml "), because the solutions are inside it (but only standard solutions, and I need standard and customized solutions).

I do not think this is the right way to do this. Is there any other way to get all the solutions for the Sharepoint 2010 task?

+3
source share
1 answer

, , .

ClientContext clientContext = new ClientContext(_URL);
            List list = clientContext.Web.Lists.GetByTitle("Tasks");
            CamlQuery camlQuery = new CamlQuery();
            camlQuery.ViewXml = "<View/>"; //filter
            ListItemCollection listItems = list.GetItems(camlQuery);
            clientContext.Load(list); clientContext.Load(listItems);
            clientContext.ExecuteQuery();
                    try
                    {
                    foreach (ListItem _item in listItems)
                    {
                       //your code 
                    }
0

All Articles