ClientContext - how to tell if you have an active connection?
-
16-10-2019 - |
Question
I have this code :
ClientContext clientContext = new ClientContext(this.siteURL);
List oList = clientContext.Web.Lists.GetByTitle("AList");
I cant seem to access any properties for oList, is there a way to tell that the clientContext object is connected to sharepoint?
Solution
Have you done clientContext.Load(oList) ?
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange