Share via


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
abstract Dispose : unit -> unit 
override Dispose : unit -> unit 
public final function Dispose()

Implements

IDisposable.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

Microsoft.Synchronization.MetadataStorage Namespace