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
Post a Comment