共用方式為


SPGlobalAdmin.Dispose method

NOTE: This API is now obsolete.

在Windows SharePoint Services 2.0, Dispose方法用來釋放通用管理物件,所使用的所有未受管理的資源,並維護回溯相容性。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<ObsoleteAttribute("This method is no longer necessary.", False)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Sub Dispose
'用途
Dim instance As SPGlobalAdmin

instance.Dispose()
[ObsoleteAttribute("This method is no longer necessary.", false)]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public void Dispose()

Implements

IDisposable.Dispose()

備註

呼叫Dispose方法不會有相同效果: 呼叫Close方法。使用Dispose方法來關閉SPGlobalAdmin物件,當您完成使用物件時,釋放資源。或多個物件會在關閉之後,透過物件取得不重複使用。

請參閱

參照

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace