Editja

AnnotationStore Class

Definition

When overridden in a derived class, represents a data store for writing and reading user annotations.

public ref class AnnotationStore abstract : IDisposable
public abstract class AnnotationStore : IDisposable
type AnnotationStore = class
    interface IDisposable
Public MustInherit Class AnnotationStore
Implements IDisposable
Inheritance
AnnotationStore
Derived
Implements

Constructors

Name Description
AnnotationStore()

Initializes a new instance of the AnnotationStore class.

Properties

Name Description
AutoFlush

Gets or sets a value that indicates whether data in annotation buffers is to be written immediately to the physical data store.

IsDisposed

Gets a value that indicates whether Dispose has been called.

SyncRoot

Gets the object to use as a synchronization lock for AnnotationStore critical sections.

Methods

Name Description
AddAnnotation(Annotation)

Adds a new Annotation to the store.

DeleteAnnotation(Guid)

Deletes the annotation with the specified Id from the store.

Dispose()

Releases all managed and unmanaged resources used by the store.

Dispose(Boolean)

Releases the unmanaged resources used by the store and optionally releases the managed resources.

Finalize()

Guarantees that Dispose(Boolean) will eventually be called for this store.

Flush()

Forces any annotation data retained in internal buffers to be written to the underlying storage device.

GetAnnotation(Guid)

Returns the annotation with the specified Id from the store.

GetAnnotations()

Returns a list of all the annotations in the store.

GetAnnotations(ContentLocator)

Returns a list of annotations that have Anchors with locators that begin with a matching ContentLocatorPart sequence.

OnAnchorChanged(AnnotationResourceChangedEventArgs)

Raises the AnchorChanged event.

OnAuthorChanged(AnnotationAuthorChangedEventArgs)

Raises the AuthorChanged event.

OnCargoChanged(AnnotationResourceChangedEventArgs)

Raises the CargoChanged event.

OnStoreContentChanged(StoreContentChangedEventArgs)

Raises the StoreContentChanged event.

Events

Name Description
AnchorChanged

Occurs when an anchor on any Annotation in the store changes.

AuthorChanged

Occurs when an author on any Annotation in the store changes.

CargoChanged

Occurs when a cargo on any Annotation in the store changes.

StoreContentChanged

Occurs when an Annotation is added to or deleted from the store.

Applies to