Closes the site collection and releases resources.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Calling the Close method had the same effect as calling the Dispose method. Use the Close method to close the SPSite object and release resources when you are finished using the object. Do not reuse the object or objects that are obtained through the object after it is closed.
If you create an SPSite object, you can use the Close method to close the object. However, if you have a reference to a shared resource, such as when the object is provided by the SPControl.GetContextSite method or Site property (for example, SPContext.Current.Site), do not use the Close method to close the object, but instead allow Windows SharePoint Services or your portal application manage the object. For more information about object disposal, see Best Practices: Using Disposable Windows SharePoint Services Objects.