次の方法で共有


SPMetabaseObject.Dispose method

Releases unmanaged resources used by the configuration store object.

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

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