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:

Difference between Load() and LoadQuery() in SharePoint
In this blog you will see the difference between Load() and LoadQuery() in SharePoint.


Murali KrisPosted Oct 3, 2018, 9:25 PM EDT
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, 4:36 AM EDT
How to clear ClientContext object & LoadQuerycollection object ?If both can be cleared by disposing the object then what is the difference?
Ravi KantPosted Apr 10, 2016, 10:45 PM EDT
Thanks Gowtham
Gowtham RajamanickamTOP 100Posted Apr 10, 2016, 10:43 PM EDT
good one...
Gowtham RajamanickamTOP 100Posted Apr 10, 2016, 10:43 PM EDT
good one...
Gowtham RajamanickamTOP 100Posted Apr 10, 2016, 10:43 PM EDT
good one...