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)
Available in Sandboxed Solutions: No
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
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.