Online Training On SharePoint

Question on SPSite and SPWeb Object

Question 132: What is the correct action to take when using the SPSite or SPWeb object in the Web Part Code:

a.Open the object in the context of the user

b.Call the Dispose() method once we finished it using or instantiate it in a Using statement

c.Call IISReset()when you need exclusive access to the SPSite or SPWeb Objects

d.Call SPDispose to ensure all underlying COM objects are disposed.

Check Answer