SqlMetadataStore::Dispose Method

Releases the resources that are used by SqlMetadataStore.

Namespace:  Microsoft.Synchronization.MetadataStorage
Assembly:  Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)

public:
virtual void Dispose() sealed

Implements

IDisposable::Dispose()

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.

NoteNote

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.

Show: