Uredi

Deli z drugimi prek


XmlStreamStore Class

Definition

Represents an XML data store for writing and reading user annotations.

public ref class XmlStreamStore sealed : System::Windows::Annotations::Storage::AnnotationStore
public sealed class XmlStreamStore : System.Windows.Annotations.Storage.AnnotationStore
type XmlStreamStore = class
    inherit AnnotationStore
Public NotInheritable Class XmlStreamStore
Inherits AnnotationStore
Inheritance
XmlStreamStore

Constructors

XmlStreamStore(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.

XmlStreamStore(Stream)

Initializes a new instance of the XmlStreamStore class with a specified I/O Stream.

Properties

AutoFlush

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

IgnoredNamespaces

Gets a list of the namespaces that were ignored when the XML stream was loaded.

IsDisposed

Gets a value that indicates whether Dispose has been called.

(Inherited from AnnotationStore)
SyncRoot

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

(Inherited from AnnotationStore)
WellKnownNamespaces

Gets a list of all namespaces that are predefined by the Annotations Framework.

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.

(Inherited from AnnotationStore)
Dispose(Boolean)

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

(Inherited from AnnotationStore)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
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)
GetWellKnownCompatibleNamespaces(Uri)

Returns a list of namespaces that are compatible as an input namespace.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnAnchorChanged(AnnotationResourceChangedEventArgs)

Raises the AnchorChanged event.

(Inherited from AnnotationStore)
OnAuthorChanged(AnnotationAuthorChangedEventArgs)

Raises the AuthorChanged event.

(Inherited from AnnotationStore)
OnCargoChanged(AnnotationResourceChangedEventArgs)

Raises the CargoChanged event.

(Inherited from AnnotationStore)
OnStoreContentChanged(StoreContentChangedEventArgs)

Raises the StoreContentChanged event.

(Inherited from AnnotationStore)
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.

(Inherited from AnnotationStore)
AuthorChanged

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

(Inherited from AnnotationStore)
CargoChanged

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

(Inherited from AnnotationStore)
StoreContentChanged

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

(Inherited from AnnotationStore)

Applies to

See also