AnnotationStore Class

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

System.Object
  System.Windows.Annotations.Storage.AnnotationStore
    System.Windows.Annotations.Storage.XmlStreamStore

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

public abstract class AnnotationStore : IDisposable

The AnnotationStore type exposes the following members.

  NameDescription
Protected methodAnnotationStoreInitializes a new instance of the AnnotationStore class.
Top

  NameDescription
Public propertyAutoFlushGets or sets a value that indicates whether data in annotation buffers is to be written immediately to the physical data store.
Protected propertyIsDisposedGets a value that indicates whether Dispose has been called.
Protected propertySyncRootGets the object to use as a synchronization lock for AnnotationStore critical sections.
Top

  NameDescription
Public methodAddAnnotationAdds a new Annotation to the store.
Public methodDeleteAnnotationDeletes the annotation with the specified Id from the store.
Public methodDispose()Releases all managed and unmanaged resources used by the store.
Protected methodDispose(Boolean)Releases the unmanaged resources used by the store and optionally releases the managed resources.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeGuarantees that Dispose will eventually be called for this store. (Overrides Object.Finalize().)
Public methodFlushForces any annotation data retained in internal buffers to be written to the underlying storage device.
Public methodGetAnnotationReturns the annotation with the specified Id from the store.
Public methodGetAnnotations()Returns a list of all the annotations in the store.
Public methodGetAnnotations(ContentLocator)Returns a list of annotations that have Anchors with locators that begin with a matching ContentLocatorPart sequence.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnAnchorChangedRaises the AnchorChanged event.
Protected methodOnAuthorChangedRaises the AuthorChanged event.
Protected methodOnCargoChangedRaises the CargoChanged event.
Protected methodOnStoreContentChangedRaises the StoreContentChanged event.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventAnchorChangedOccurs when an anchor on any Annotation in the store changes.
Public eventAuthorChangedOccurs when an author on any Annotation in the store changes.
Public eventCargoChangedOccurs when a cargo on any Annotation in the store changes.
Public eventStoreContentChangedOccurs when an Annotation is added to or deleted from the store.
Top

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft