AnnotationStore Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
AnnotationStore() |
Initializes a new instance of the AnnotationStore class. |
Properties
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
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. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
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. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
OnAnchorChanged(AnnotationResourceChangedEventArgs) |
Raises the AnchorChanged event. |
OnAuthorChanged(AnnotationAuthorChangedEventArgs) |
Raises the AuthorChanged event. |
OnCargoChanged(AnnotationResourceChangedEventArgs) |
Raises the CargoChanged event. |
OnStoreContentChanged(StoreContentChangedEventArgs) |
Raises the StoreContentChanged event. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Events
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. |