When should you dispose of spweb and spsite objects?



When should you dispose of spweb and spsite objects?..

Answer / Rakesh Sagar

You should dispose of both SPWeb and SPSite objects as soon as possible after using them, typically in the finally block to ensure disposal even if an exception is thrown.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SharePoint Interview Questions

Is microsoft getting rid of sharepoint?

1 Answers  


What is classic-mode authentication?

1 Answers  


What are html etags?

1 Answers  


Which Workflow are used in Sharepoint Designer , how can i executed Workflow ?

1 Answers   TCS,


Difference beetween form library and document library?

1 Answers   iGate,


How can i create new workflows in VS 2005 ? with real time example ?

1 Answers   Value Labs,


Explain sharepoint master pages and its features?

1 Answers  


What is document center?

1 Answers  


Explain webpart properties, and what are some of the attributes you see when declaring webpart properties in code?

1 Answers  


Which provider is better in Visual Studio ? like OLEDB and Sqlserver .

1 Answers   TCS,


What are the types of page layout columns?

1 Answers  


What are the ways of backing up and restoring site collection?

1 Answers  


Categories