This documentation is archived and is not being maintained.

XmlStreamStore Class

Represents an XML 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 ref class XmlStreamStore sealed : public AnnotationStore

The XmlStreamStore type exposes the following members.

  NameDescription
Public methodXmlStreamStore(Stream)Initializes a new instance of the XmlStreamStore class with a specified I/O Stream.
Public methodXmlStreamStore(Stream, IDictionary<Uri, IList<Uri>>)Initializes a new instance of the XmlStreamStore class with a specified I/O Stream and dictionary of known compatible namespaces.
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. (Overrides AnnotationStore::AutoFlush.)
Public propertyIgnoredNamespacesGets a list of the namespaces that were ignored when the XML stream was loaded.
Protected propertyIsDisposedGets a value that indicates whether Dispose has been called. (Inherited from AnnotationStore.)
Protected propertySyncRootGets the object to use as a synchronization lock for AnnotationStore critical sections. (Inherited from AnnotationStore.)
Public propertyStatic memberWellKnownNamespacesGets a list of all namespaces that are predefined by the Annotations Framework.
Top

  NameDescription
Public methodAddAnnotationAdds a new Annotation to the store. (Overrides AnnotationStore::AddAnnotation(Annotation).)
Public methodDeleteAnnotationDeletes the annotation with the specified Id from the store. (Overrides AnnotationStore::DeleteAnnotation(Guid).)
Public methodDispose()Releases all managed and unmanaged resources used by the store. (Inherited from AnnotationStore.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the store and optionally releases the managed resources. (Inherited from AnnotationStore.)
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. (Inherited from AnnotationStore.)
Public methodFlushForces any annotation data retained in internal buffers to be written to the underlying storage device. (Overrides AnnotationStore::Flush().)
Public methodGetAnnotationReturns the annotation with the specified Id from the store. (Overrides AnnotationStore::GetAnnotation(Guid).)
Public methodGetAnnotations()Returns a list of all the annotations in the store. (Overrides AnnotationStore::GetAnnotations().)
Public methodGetAnnotations(ContentLocator)Returns a list of annotations that have Anchors with locators that begin with a matching ContentLocatorPart sequence. (Overrides AnnotationStore::GetAnnotations(ContentLocator).)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberGetWellKnownCompatibleNamespacesReturns a list of namespaces that are compatible as an input namespace.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnAnchorChangedRaises the AnchorChanged event. (Inherited from AnnotationStore.)
Protected methodOnAuthorChangedRaises the AuthorChanged event. (Inherited from AnnotationStore.)
Protected methodOnCargoChangedRaises the CargoChanged event. (Inherited from AnnotationStore.)
Protected methodOnStoreContentChangedRaises the StoreContentChanged event. (Inherited from AnnotationStore.)
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. (Inherited from AnnotationStore.)
Public eventAuthorChangedOccurs when an author on any Annotation in the store changes. (Inherited from AnnotationStore.)
Public eventCargoChangedOccurs when a cargo on any Annotation in the store changes. (Inherited from AnnotationStore.)
Public eventStoreContentChangedOccurs when an Annotation is added to or deleted from the store. (Inherited from AnnotationStore.)
Top

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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.
Show: