共用方式為


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)

Syntax

'宣告
Public Sub Dispose
'用途
Dim instance As SPSite

instance.Dispose()
public void Dispose()

Implements

IDisposable.Dispose()

備註

The Dispose method calls the Close method.

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace