Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPSite.Dispose Method

Releases all unmanaged resources that are used by the site collection object.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

'Declaration
Public Sub Dispose
'Usage
Dim instance As SPSite

instance.Dispose()

Implements

IDisposable.Dispose()

The Dispose method calls the Close method.

Show:
© 2015 Microsoft