SharePoint Client Object model has two methods, Load() and LoadQuery(), to retrieve data from SharePoint Server. Both methods are used to retrieve the data or objects you queried from the SharePoint Server. Let’s find out major differences between them.
Load() :
Load Method populates client objects that reside within the ClientContext instance that is directly with what it gets from the server, i.e a collection object like ListitemCollection.
Load Method collection object can be cleaned up by garbage collection only when client context object will be destroyed.
Example:

LoadQuery()
LoadQueryMethod returns the data completely in a new collection in IEnumerable.
Since LoadQuerycollection objects are separate from the ClientContext instance, it will be cleaned much more easily.
Example:

Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Murali KrisPosted Oct 4, 2018, 1:25 AM
Hi Ravi,Can you help me how to load List SchemaXML file.please reply List list = web.Lists.GetByTitle("listtestnow"); ctx.Load(list); ctx.Load(list.SchemaXml); ctx.ExecuteQuery(); Error is type string cant be used as a type parameter etc
Nishikant RathPosted Jul 18, 2018, 8:36 AM
How to clear ClientContext object & LoadQuerycollection object ?If both can be cleared by disposing the object then what is the difference?
Ravi KantPosted Apr 11, 2016, 2:45 AM
Thanks Gowtham
Gowtham RajamanickamPosted Apr 11, 2016, 2:43 AM
good one...
Gowtham RajamanickamPosted Apr 11, 2016, 2:43 AM
good one...
Gowtham RajamanickamPosted Apr 11, 2016, 2:43 AM
good one...