c# - Do you have to dispose the following SharePoint objects? -


i wanted make sure there's no memory leak in sharepoint need call dispose following sharepoint objects once i'm done? i'm thinking shouldn't have since i'm not creating new , using getcurrent(), sharepoint it's hard tell.

microsoft.sharepoint.webcontrols.siteactions siteactions      = siteactions.getcurrent(this.page);  microsoft.sharepoint.webcontrols.pagestateactionbutton psab      = pagestateactionbutton.getcurrent(this.page);  microsoft.sharepoint.webcontrols.spribbon ribbon      = microsoft.sharepoint.webcontrols.spribbon.getcurrent(this.page); 


Comments

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -