sharepoint - Should I use "using" when getting an object from SPContext? -


i getting splistitemcollection in way:

spcontext.current.web.list("multimedia").getitems(query) 

according microsoft article, "spcontext objects managed sharepoint framework , should not explicitly disposed in code."

my question -should enclose above code within using block? or shouldn't i, considering comes spcontext object? thank you.

it not spcontext - splistitemcollection not implement idisposable , can't disposed.

unless not getting question correctly?


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -