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

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -