AnnotationStore.Dispose Method ()

 

Releases all managed and unmanaged resources used by the store.

Namespace:   System.Windows.Annotations.Storage
Assembly:  PresentationFramework (in PresentationFramework.dll)

public void Dispose()

Applications should call Dispose when finished with the AnnotationStore. After calling Dispose the application can release all references to the AnnotationStore to allow the garbage collector to reclaim the memory that the AnnotationStore was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

The public Dispose method calls the protected Dispose(Boolean) method with the disposing parameter of true to release all managed and unmanaged resources.

System_CAPS_noteNote

Call Dispose before the last reference to the AnnotationStore is released. If Dispose is not called, AnnotationStore resources will not be freed until the garbage collector calls the store's Finalize method.

.NET Framework
Available since 3.0
Return to top
Show: