load vs load query in sharepoint


Load 

Load() populate the client object directly with what it gets data from the server i.e. a sollection eg. ListItemCollection. Means Load() returns ListCollection.

LoadQuery

LoadQuery() returns the data as a new collection in IEnumerable format.
LoadQuery() is flexible than Load() when you are working with more than one query because LoadQuery() returns data in IEnumerable<> format which is easy to acces.

No comments:

Post a Comment