Condividi tramite


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

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As SPSite

instance.Dispose()
public void Dispose()

Implements

IDisposable.Dispose()

Remarks

The Dispose method calls the Close method.

See Also

Reference

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace