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 - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

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