Udostępnij za pośrednictwem


SqlMetadataStore.Dispose Method

Releases the resources that are used by SqlMetadataStore.

Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in microsoft.synchronization.metadatastorage.dll)

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As SqlMetadataStore

instance.Dispose
public void Dispose ()
public:
virtual void Dispose () sealed
public final void Dispose ()
public final function Dispose ()

Remarks

The Dispose method leaves the SqlMetadataStore in an unusable state. After Dispose is called, all references to the SqlMetadataStore must be released so that the garbage collector can reclaim the memory that SqlMetadataStore was occupying.

Note

Before the last reference to SqlMetadataStore is released, always call Dispose. Otherwise, the resources it is using will not be freed until the garbage collector calls the Finalize method of SqlMetadataStore.

See Also

Reference

SqlMetadataStore Class
SqlMetadataStore Members
Microsoft.Synchronization.MetadataStorage Namespace