Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 sealed class XmlStreamStore : 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.
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.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
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 the default hash function. (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.
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.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, 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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.