SPGlobalAdmin.Dispose method

NOTE: This API is now obsolete.

In Windows SharePoint Services 2.0, the Dispose method was used to release all unmanaged resources used by the global administration object, and is maintained for backward compatibility.

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

Syntax

'Declaration
<ObsoleteAttribute("This method is no longer necessary.", False)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Sub Dispose
'Usage
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()

Remarks

Calling the Dispose method has the same effect as calling the Close method. Use the Dispose method to close the SPGlobalAdmin object and release resources when you finish using the object. Do not reuse the object or objects obtained through the object after it is closed.

See also

Reference

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace