Compartilhar via


SPMetabaseObject.Dispose Method

Releases unmanaged resources used by the configuration store object.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Overridable Sub Dispose
'Usage
Dim instance As SPMetabaseObject

instance.Dispose()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public virtual void Dispose()

Implements

IDisposable.Dispose()

Remarks

When a managed object uses unmanaged resources such as file handles or database connections, and the managed object is reclaimed, a type must implement the Finalize() method. The SPMetabaseObject requests that the system not call the Finalize() method; instead, the configuration store Active Directory node that corresponds to the object is disposed, and then the parent of the object is disposed if the parent is disposable.

See Also

Reference

SPMetabaseObject Class

SPMetabaseObject Members

Microsoft.SharePoint.Administration Namespace

IDisposable