«

»

May 20

SharePoint 2010 – Class to Hold ListItem Information

In order to avoid excessive memory leaks when coding for SharePoint 2010 I have used the following class:-

This avoids the need to parse the heavyweight SPWeb object between the routines. There is a slight overhead in re-creating the SPWeb objects when necessary, but this is outweighed by the ease of use.  The class and routines here can also be used to delay operations by running them on a separate thread.

1,398 total views, 2 views today

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">