what is the clientcontext sharepoint object?

1

I have a question, I have already researched in some places but I can not understand what context the clientcontext class instantiates.

I am using in my code passing a URL (obviously) I know this class creates a page context that has been passed by parameter but I would like a more technical definition, what this class does behind the scenes.

using(var clientContext = this.clienteContext("URL")) 
    
asked by anonymous 16.03.2017 / 00:28

1 answer

0

Hello

Clientcontext is the context where your code will be run, meaning it is where you can access SharePoint objects to retrieve the current site, current user, lists, and SharePoint items.

For example, to retrieve the current site from the context where our code is running, let's use clientContext.Web. To recover a certain list from our portal, we will use the clientContext.Web.Lists.GetByTitle ("List Name")

    
18.03.2017 / 02:03