| 1. |
What Is Difference Between Load() And Loadquery() Methods ? |
|
Answer» Load METHOD populates the CLIENT object directly with what it gets data from the server i.e. a collection object LIKE ListItemCollection ETC. but LoadQuery returns the data as a completely new collection in IEnumerable format. Other major difference is that the Collections that you load using the Load() method are eligible for GARBAGE collection only when the client context variable itself goes out of scope where as, in these collections go out of scope at the end of IEnumerable list Load method populates the client object directly with what it gets data from the server i.e. a collection object like ListItemCollection etc. but LoadQuery returns the data as a completely new collection in IEnumerable format. Other major difference is that the Collections that you load using the Load() method are eligible for garbage collection only when the client context variable itself goes out of scope where as, in these collections go out of scope at the end of IEnumerable list |
|